pub struct AxisMask(/* private fields */);Expand description
A bitmask over the design-cube axes. Bit i set means the
corresponding axis is engaged at its non-default value.
The direction signature for a variant is its AxisMask: which
axes it sets to non-default values. A workload’s required
signature is also an AxisMask: which axes it needs the
transport (or pointer type) to handle non-trivially.
Implementations§
Source§impl AxisMask
impl AxisMask
Sourcepub const EMPTY: AxisMask
pub const EMPTY: AxisMask
The empty signature (no axes engaged). Corresponds to the origin corner of the cube (Chase-Lev’s signature).
Sourcepub const fn from_bits(bits: u16) -> Self
pub const fn from_bits(bits: u16) -> Self
Build from a raw u16. Bits outside the valid range are
masked off.
Sourcepub const fn intersection(self, other: AxisMask) -> AxisMask
pub const fn intersection(self, other: AxisMask) -> AxisMask
Intersection of two signatures.
Trait Implementations§
impl Copy for AxisMask
impl Eq for AxisMask
impl StructuralPartialEq for AxisMask
Auto Trait Implementations§
impl Freeze for AxisMask
impl RefUnwindSafe for AxisMask
impl Send for AxisMask
impl Sync for AxisMask
impl Unpin for AxisMask
impl UnsafeUnpin for AxisMask
impl UnwindSafe for AxisMask
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more