pub struct OctantMask { /* private fields */ }Expand description
Implementations§
Source§impl OctantMask
impl OctantMask
Sourcepub const ALL: OctantMask
pub const ALL: OctantMask
The mask including all octants (all bits set).
Sourcepub const NONE: OctantMask
pub const NONE: OctantMask
The mask including no octants (no bits set).
Sourcepub fn shift(self, direction: Face6) -> OctantMask
pub fn shift(self, direction: Face6) -> OctantMask
Shift the data in the specified direction, discarding overflows and filling with
false/clear.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for OctantMask
impl<'arbitrary> Arbitrary<'arbitrary> for OctantMask
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<OctantMask, Error>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<OctantMask, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<OctantMask, Error>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<OctantMask, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl BitAnd for OctantMask
impl BitAnd for OctantMask
Source§type Output = OctantMask
type Output = OctantMask
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: OctantMask) -> <OctantMask as BitAnd>::Output
fn bitand(self, rhs: OctantMask) -> <OctantMask as BitAnd>::Output
Performs the
& operation. Read moreSource§impl BitAndAssign for OctantMask
impl BitAndAssign for OctantMask
Source§fn bitand_assign(&mut self, rhs: OctantMask)
fn bitand_assign(&mut self, rhs: OctantMask)
Performs the
&= operation. Read moreSource§impl BitOr for OctantMask
impl BitOr for OctantMask
Source§type Output = OctantMask
type Output = OctantMask
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: OctantMask) -> <OctantMask as BitOr>::Output
fn bitor(self, rhs: OctantMask) -> <OctantMask as BitOr>::Output
Performs the
| operation. Read moreSource§impl BitOrAssign for OctantMask
impl BitOrAssign for OctantMask
Source§fn bitor_assign(&mut self, rhs: OctantMask)
fn bitor_assign(&mut self, rhs: OctantMask)
Performs the
|= operation. Read moreSource§impl Clone for OctantMask
impl Clone for OctantMask
Source§fn clone(&self) -> OctantMask
fn clone(&self) -> OctantMask
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OctantMask
impl Debug for OctantMask
Source§impl Exhaust for OctantMask
impl Exhaust for OctantMask
Source§type Iter = ExhaustOctantMaskIter
type Iter = ExhaustOctantMaskIter
Iterator type returned by
Self::exhaust_factories().
See the trait documentation for what properties this iterator should have. Read moreSource§fn exhaust_factories() -> <OctantMask as Exhaust>::Iter
fn exhaust_factories() -> <OctantMask as Exhaust>::Iter
Source§fn from_factory(factory: <OctantMask as Exhaust>::Factory) -> OctantMask
fn from_factory(factory: <OctantMask as Exhaust>::Factory) -> OctantMask
Construct a concrete value of this type from a
Self::Factory value produced by
its Self::Iter. Read moreSource§impl From<Octant> for OctantMask
impl From<Octant> for OctantMask
Source§fn from(octant: Octant) -> OctantMask
fn from(octant: Octant) -> OctantMask
Converts to this type from the input type.
Source§impl FromIterator<Octant> for OctantMask
impl FromIterator<Octant> for OctantMask
Source§fn from_iter<T>(iter: T) -> OctantMaskwhere
T: IntoIterator<Item = Octant>,
fn from_iter<T>(iter: T) -> OctantMaskwhere
T: IntoIterator<Item = Octant>,
Creates a value from an iterator. Read more
Source§impl Hash for OctantMask
impl Hash for OctantMask
Source§impl Not for OctantMask
impl Not for OctantMask
Source§impl PartialEq for OctantMask
impl PartialEq for OctantMask
impl Copy for OctantMask
impl Eq for OctantMask
impl StructuralPartialEq for OctantMask
Auto Trait Implementations§
impl Freeze for OctantMask
impl RefUnwindSafe for OctantMask
impl Send for OctantMask
impl Sync for OctantMask
impl Unpin for OctantMask
impl UnwindSafe for OctantMask
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.