#[repr(C, align(1))]pub struct BVec4 {
pub x: bool,
pub y: bool,
pub z: bool,
pub w: bool,
}
Expand description
A 4-dimensional bool
vector mask.
Fields§
§x: bool
§y: bool
§z: bool
§w: bool
Implementations§
source§impl BVec4
impl BVec4
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 BVec4
impl BitAndAssign for BVec4
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for BVec4
impl BitOrAssign for BVec4
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for BVec4
impl BitXorAssign for BVec4
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl PartialEq for BVec4
impl PartialEq for BVec4
impl Copy for BVec4
impl Eq for BVec4
impl StructuralEq for BVec4
impl StructuralPartialEq for BVec4
Auto Trait Implementations§
impl RefUnwindSafe for BVec4
impl Send for BVec4
impl Sync for BVec4
impl Unpin for BVec4
impl UnwindSafe for BVec4
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