Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwe committed Jan 6, 2025
1 parent 1d01b94 commit b87010a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindgen/ir/enum_ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ impl Enum {
Ok(Enum::new(repr, variants))
}

/// Checks if the enum matches any of the regular expressions in `enums`
///
/// For anonymous enums, returns true if any of the enum variants matches
/// any of the regular expressions in `enums`.
pub(crate) fn is_matching_enum(
&self,
ctx: &BindgenContext,
Expand Down

0 comments on commit b87010a

Please sign in to comment.