diff --git a/src/geometry/interaction_groups.rs b/src/geometry/interaction_groups.rs index 2c3b4b3..2dfa098 100644 --- a/src/geometry/interaction_groups.rs +++ b/src/geometry/interaction_groups.rs @@ -150,3 +150,17 @@ bitflags! { const NONE = 0; } } + +impl From for Group { + #[inline] + fn from(val: u32) -> Self { + unsafe { Self::from_bits_unchecked(val) } + } +} + +impl From for u32 { + #[inline] + fn from(val: Group) -> Self { + val.bits() + } +}