#[repr(C, align(16))]pub struct BVec4A {
pub x: u32,
pub y: u32,
pub z: u32,
pub w: u32,
}
Expand description
A 4-dimensional u32
vector mask.
Fields§
§x: u32
§y: u32
§z: u32
§w: u32
Implementations§
source§impl BVec4A
impl BVec4A
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: BVec4A)
fn bitand_assign(&mut self, rhs: BVec4A)
Performs the
&=
operation. Read moresource§impl BitOrAssign for BVec4A
impl BitOrAssign for BVec4A
source§fn bitor_assign(&mut self, rhs: BVec4A)
fn bitor_assign(&mut self, rhs: BVec4A)
Performs the
|=
operation. Read moresource§impl BitXorAssign for BVec4A
impl BitXorAssign for BVec4A
source§fn bitxor_assign(&mut self, rhs: BVec4A)
fn bitxor_assign(&mut self, rhs: BVec4A)
Performs the
^=
operation. Read moresource§impl<'de> Deserialize<'de> for BVec4A
Available on non-crate feature scalar-math
only.
impl<'de> Deserialize<'de> for BVec4A
Available on non-crate feature
scalar-math
only.source§fn deserialize<D>(
deserializer: D
) -> Result<BVec4A, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<BVec4A, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BVec4A
impl PartialEq for BVec4A
source§impl Serialize for BVec4A
Available on non-crate feature scalar-math
only.
impl Serialize for BVec4A
Available on non-crate feature
scalar-math
only.source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for BVec4A
impl Eq for BVec4A
impl StructuralEq for BVec4A
impl StructuralPartialEq for BVec4A
Auto Trait Implementations§
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> Downcast for T
impl<T> Downcast for T
source§impl<T> ElementComponentName for T
impl<T> ElementComponentName for T
source§fn element_component_name(&self) -> &'static str
fn element_component_name(&self) -> &'static str
Returns the name of the type implementing ElementComponent.
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.