#[repr(C)]pub struct Vec3Mask(_, _, _);
Expand description
A 3-dimensional vector mask.
Implementations
sourceimpl Vec3Mask
impl Vec3Mask
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<Vec3Mask> for Vec3Mask
impl BitAndAssign<Vec3Mask> for Vec3Mask
sourcefn bitand_assign(&mut self, other: Vec3Mask)
fn bitand_assign(&mut self, other: Vec3Mask)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<Vec3Mask> for Vec3Mask
impl BitOrAssign<Vec3Mask> for Vec3Mask
sourcefn bitor_assign(&mut self, other: Vec3Mask)
fn bitor_assign(&mut self, other: Vec3Mask)
Performs the |=
operation. Read more
sourceimpl Ord for Vec3Mask
impl Ord for Vec3Mask
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<Vec3Mask> for Vec3Mask
impl PartialEq<Vec3Mask> for Vec3Mask
sourceimpl PartialOrd<Vec3Mask> for Vec3Mask
impl PartialOrd<Vec3Mask> for Vec3Mask
sourcefn partial_cmp(&self, other: &Vec3Mask) -> Option<Ordering>
fn partial_cmp(&self, other: &Vec3Mask) -> 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 Vec3Mask
impl Eq for Vec3Mask
impl StructuralEq for Vec3Mask
impl StructuralPartialEq for Vec3Mask
Auto Trait Implementations
impl RefUnwindSafe for Vec3Mask
impl Send for Vec3Mask
impl Sync for Vec3Mask
impl Unpin for Vec3Mask
impl UnwindSafe for Vec3Mask
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