#[repr(C, align(16))]pub struct BVec3A {
pub x: u32,
pub y: u32,
pub z: u32,
}
Expand description
A 3-dimensional u32
vector mask.
Fields§
§x: u32
§y: u32
§z: u32
Implementations§
source§impl BVec3A
impl BVec3A
sourcepub fn bitmask(self) -> u32
pub fn bitmask(self) -> u32
Returns a bitmask with the lowest 3 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 BVec3A
impl BitAndAssign for BVec3A
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign for BVec3A
impl BitOrAssign for BVec3A
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign for BVec3A
impl BitXorAssign for BVec3A
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 BVec3A
impl<'de> Deserialize<'de> for BVec3A
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
source§impl PartialEq for BVec3A
impl PartialEq for BVec3A
impl Copy for BVec3A
impl Eq for BVec3A
impl StructuralEq for BVec3A
impl StructuralPartialEq for BVec3A
Auto Trait Implementations§
impl RefUnwindSafe for BVec3A
impl Send for BVec3A
impl Sync for BVec3A
impl Unpin for BVec3A
impl UnwindSafe for BVec3A
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