Skip to content

Commit b87010a

Browse files
committed
Add docstring
1 parent 1d01b94 commit b87010a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bindgen/ir/enum_ty.rs

+4
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ impl Enum {
150150
Ok(Enum::new(repr, variants))
151151
}
152152

153+
/// Checks if the enum matches any of the regular expressions in `enums`
154+
///
155+
/// For anonymous enums, returns true if any of the enum variants matches
156+
/// any of the regular expressions in `enums`.
153157
pub(crate) fn is_matching_enum(
154158
&self,
155159
ctx: &BindgenContext,

0 commit comments

Comments
 (0)