diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/geometry/interaction_groups.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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<u32> for Group { + #[inline] + fn from(val: u32) -> Self { + unsafe { Self::from_bits_unchecked(val) } + } +} + +impl From<Group> for u32 { + #[inline] + fn from(val: Group) -> Self { + val.bits() + } +} |
