#[repr(C)]pub struct Vec4Mask(_, _, _, _);
Implementations
sourceimpl Vec4Mask
impl Vec4Mask
sourcepub fn bitmask(self) -> u32
pub fn bitmask(self) -> u32
Returns a bitmask with the lowest four 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 || w
.
Trait Implementations
sourceimpl BitAndAssign<Vec4Mask> for Vec4Mask
impl BitAndAssign<Vec4Mask> for Vec4Mask
sourcefn bitand_assign(&mut self, other: Vec4Mask)
fn bitand_assign(&mut self, other: Vec4Mask)
Performs the &=
operation. Read more
sourceimpl BitOrAssign<Vec4Mask> for Vec4Mask
impl BitOrAssign<Vec4Mask> for Vec4Mask
sourcefn bitor_assign(&mut self, other: Vec4Mask)
fn bitor_assign(&mut self, other: Vec4Mask)
Performs the |=
operation. Read more
sourceimpl Ord for Vec4Mask
impl Ord for Vec4Mask
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<Vec4Mask> for Vec4Mask
impl PartialEq<Vec4Mask> for Vec4Mask
sourceimpl PartialOrd<Vec4Mask> for Vec4Mask
impl PartialOrd<Vec4Mask> for Vec4Mask
sourcefn partial_cmp(&self, other: &Vec4Mask) -> Option<Ordering>
fn partial_cmp(&self, other: &Vec4Mask) -> 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 Vec4Mask
impl Eq for Vec4Mask
impl StructuralEq for Vec4Mask
impl StructuralPartialEq for Vec4Mask
Auto Trait Implementations
impl RefUnwindSafe for Vec4Mask
impl Send for Vec4Mask
impl Sync for Vec4Mask
impl Unpin for Vec4Mask
impl UnwindSafe for Vec4Mask
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