summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbindgen/src/ir/item.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbindgen/src/ir/item.rs b/libbindgen/src/ir/item.rs
index 253db8c0..108150e5 100644
--- a/libbindgen/src/ir/item.rs
+++ b/libbindgen/src/ir/item.rs
@@ -490,7 +490,8 @@ impl Item {
}
}
- fn is_module(&self) -> bool {
+ /// Is this item a module?
+ pub fn is_module(&self) -> bool {
match self.kind {
ItemKind::Module(..) => true,
_ => false,