pub struct BVec4A(/* private fields */);
Expand description
A 4-dimensional SIMD vector mask.
This type is 16 byte aligned.
Implementations§
Source§impl BVec4A
impl BVec4A
Sourcepub const fn from_array(a: [bool; 4]) -> Self
pub const fn from_array(a: [bool; 4]) -> Self
Creates a new vector mask from a bool array.
Sourcepub fn bitmask(self) -> u32
pub fn bitmask(self) -> u32
Returns a bitmask with the lowest 4 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.
Trait Implementations§
Source§impl BitAndAssign for BVec4A
impl BitAndAssign for BVec4A
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOrAssign for BVec4A
impl BitOrAssign for BVec4A
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXorAssign for BVec4A
impl BitXorAssign for BVec4A
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moreSource§impl<'de> Deserialize<'de> for BVec4A
impl<'de> Deserialize<'de> for BVec4A
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for BVec4A
impl Eq for BVec4A
Auto Trait Implementations§
impl Freeze for BVec4A
impl RefUnwindSafe for BVec4A
impl Send for BVec4A
impl Sync for BVec4A
impl Unpin for BVec4A
impl UnwindSafe for BVec4A
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)