#[repr(align(16), C)]pub struct Vec3AMask(_);
Expand description
A 3-dimensional vector mask.
Implementations
sourceimpl Vec3AMask
impl Vec3AMask
sourcepub fn bitmask(&self) -> u32
pub fn bitmask(&self) -> u32
Returns a bitmask with the lowest three bits set from the elements of self
.
A true element results in a 1
bit and a false element in a 0
bit. Element x
goes
into the first lowest bit, element y
into the second, etc.
sourcepub fn any(&self) -> bool
pub fn any(&self) -> bool
Returns true if any of the elements are true, false otherwise.
In other words: x || y || z
.
Trait Implementations
sourceimpl BitAndAssign<Vec3AMask> for Vec3AMask
impl BitAndAssign<Vec3AMask> for Vec3AMask
sourcefn bitand_assign(&mut self, other: Vec3AMask)
fn bitand_assign(&mut self, other: Vec3AMask)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<Vec3AMask> for Vec3AMask
impl BitOrAssign<Vec3AMask> for Vec3AMask
sourcefn bitor_assign(&mut self, other: Vec3AMask)
fn bitor_assign(&mut self, other: Vec3AMask)
Performs the |=
operation. Read more
sourceimpl Ord for Vec3AMask
impl Ord for Vec3AMask
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Vec3AMask> for Vec3AMask
impl PartialEq<Vec3AMask> for Vec3AMask
sourceimpl PartialOrd<Vec3AMask> for Vec3AMask
impl PartialOrd<Vec3AMask> for Vec3AMask
sourcefn partial_cmp(&self, other: &Vec3AMask) -> Option<Ordering>
fn partial_cmp(&self, other: &Vec3AMask) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Vec3AMask
impl Eq for Vec3AMask
impl StructuralEq for Vec3AMask
impl StructuralPartialEq for Vec3AMask
Auto Trait Implementations
impl RefUnwindSafe for Vec3AMask
impl Send for Vec3AMask
impl Sync for Vec3AMask
impl Unpin for Vec3AMask
impl UnwindSafe for Vec3AMask
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more