#[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: u32Implementations§
Source§impl BVec4A
impl BVec4A
Sourcepub const fn from_array(a: [bool; 4]) -> BVec4A
pub const fn from_array(a: [bool; 4]) -> BVec4A
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<&BVec4A> for BVec4A
impl BitAndAssign<&BVec4A> for BVec4A
Source§fn bitand_assign(&mut self, rhs: &BVec4A)
fn bitand_assign(&mut self, rhs: &BVec4A)
Performs the
&= operation. Read moreSource§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<&BVec4A> for BVec4A
impl BitOrAssign<&BVec4A> for BVec4A
Source§fn bitor_assign(&mut self, rhs: &BVec4A)
fn bitor_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<&BVec4A> for BVec4A
impl BitXorAssign<&BVec4A> for BVec4A
Source§fn bitxor_assign(&mut self, rhs: &BVec4A)
fn bitxor_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 moreimpl Copy for BVec4A
impl Eq for BVec4A
impl StructuralPartialEq 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 UnsafeUnpin 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§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().