From b87010aa466e30a329d351a6cb597c45048921e0 Mon Sep 17 00:00:00 2001 From: Jonathan Schwender Date: Mon, 6 Jan 2025 09:31:41 +0100 Subject: [PATCH] Add docstring --- bindgen/ir/enum_ty.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindgen/ir/enum_ty.rs b/bindgen/ir/enum_ty.rs index ec6bd45f7b..2f0fff118d 100644 --- a/bindgen/ir/enum_ty.rs +++ b/bindgen/ir/enum_ty.rs @@ -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,