@@ -794,13 +794,21 @@ impl Builder {
794
794
795
795
/// Hide the given type from the generated bindings. Regular expressions are
796
796
/// supported.
797
+ ///
798
+ /// To blacklist types prefixed with "mylib" use `"mylib_.*"`.
799
+ /// For more complicated expressions check
800
+ /// [regex](https://docs.rs/regex/*/regex/) docs
797
801
pub fn blacklist_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
798
802
self . options . blacklisted_types . insert ( arg) ;
799
803
self
800
804
}
801
805
802
806
/// Hide the given function from the generated bindings. Regular expressions
803
807
/// are supported.
808
+ ///
809
+ /// To blacklist functions prefixed with "mylib" use `"mylib_.*"`.
810
+ /// For more complicated expressions check
811
+ /// [regex](https://docs.rs/regex/*/regex/) docs
804
812
pub fn blacklist_function < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
805
813
self . options . blacklisted_functions . insert ( arg) ;
806
814
self
@@ -809,13 +817,21 @@ impl Builder {
809
817
/// Hide the given item from the generated bindings, regardless of
810
818
/// whether it's a type, function, module, etc. Regular
811
819
/// expressions are supported.
820
+ ///
821
+ /// To blacklist items prefixed with "mylib" use `"mylib_.*"`.
822
+ /// For more complicated expressions check
823
+ /// [regex](https://docs.rs/regex/*/regex/) docs
812
824
pub fn blacklist_item < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
813
825
self . options . blacklisted_items . insert ( arg) ;
814
826
self
815
827
}
816
828
817
829
/// Treat the given type as opaque in the generated bindings. Regular
818
830
/// expressions are supported.
831
+ ///
832
+ /// To change types prefixed with "mylib" into opaque, use `"mylib_.*"`.
833
+ /// For more complicated expressions check
834
+ /// [regex](https://docs.rs/regex/*/regex/) docs
819
835
pub fn opaque_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
820
836
self . options . opaque_types . insert ( arg) ;
821
837
self
@@ -832,6 +848,10 @@ impl Builder {
832
848
/// Whitelist the given type so that it (and all types that it transitively
833
849
/// refers to) appears in the generated bindings. Regular expressions are
834
850
/// supported.
851
+ ///
852
+ /// To whitelist types prefixed with "mylib" use `"mylib_.*"`.
853
+ /// For more complicated expressions check
854
+ /// [regex](https://docs.rs/regex/*/regex/) docs
835
855
pub fn whitelist_type < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
836
856
self . options . whitelisted_types . insert ( arg) ;
837
857
self
@@ -840,6 +860,10 @@ impl Builder {
840
860
/// Whitelist the given function so that it (and all types that it
841
861
/// transitively refers to) appears in the generated bindings. Regular
842
862
/// expressions are supported.
863
+ ///
864
+ /// To whitelist functions prefixed with "mylib" use `"mylib_.*"`.
865
+ /// For more complicated expressions check
866
+ /// [regex](https://docs.rs/regex/*/regex/) docs
843
867
pub fn whitelist_function < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
844
868
self . options . whitelisted_functions . insert ( arg) ;
845
869
self
@@ -856,6 +880,10 @@ impl Builder {
856
880
/// Whitelist the given variable so that it (and all types that it
857
881
/// transitively refers to) appears in the generated bindings. Regular
858
882
/// expressions are supported.
883
+ ///
884
+ /// To whitelist variables prefixed with "mylib" use `"mylib_.*"`.
885
+ /// For more complicated expressions check
886
+ /// [regex](https://docs.rs/regex/*/regex/) docs
859
887
pub fn whitelist_var < T : AsRef < str > > ( mut self , arg : T ) -> Builder {
860
888
self . options . whitelisted_vars . insert ( arg) ;
861
889
self
0 commit comments