diff --git a/crates/component-macro/src/component.rs b/crates/component-macro/src/component.rs index b87fb6cb3c..b054f993ce 100644 --- a/crates/component-macro/src/component.rs +++ b/crates/component-macro/src/component.rs @@ -1114,6 +1114,14 @@ pub fn expand_flags(flags: &Flags) -> Result { use std::ops::Not; Self::default().not() } + + pub fn contains(&self, other: Self) -> bool { + *self & other == other + } + + pub fn intersects(&self, other: Self) -> bool { + *self & other != Self::empty() + } } impl std::cmp::PartialEq for #name {