Struct bevy_math::BVec4A[][src]

#[repr(transparent)]pub struct BVec4A(_);

A 4-dimensional SIMD vector mask.

This type is 16 byte aligned and is backed by a SIMD vector. If SIMD is not available BVec4A will be a type alias for BVec4.

Implementations

impl BVec4A[src]

pub fn new(x: bool, y: bool, z: bool, w: bool) -> BVec4A[src]

Creates a new vector mask.

pub fn bitmask(self) -> u32[src]

Returns a bitmask with the lowest two 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.

pub fn any(self) -> bool[src]

Returns true if any of the elements are true, false otherwise.

pub fn all(self) -> bool[src]

Returns true if all the elements are true, false otherwise.

Trait Implementations

impl AsRef<[u32; 4]> for BVec4A[src]

impl BitAnd<BVec4A> for BVec4A[src]

type Output = BVec4A

The resulting type after applying the & operator.

impl BitAndAssign<BVec4A> for BVec4A[src]

impl BitOr<BVec4A> for BVec4A[src]

type Output = BVec4A

The resulting type after applying the | operator.

impl BitOrAssign<BVec4A> for BVec4A[src]

impl Clone for BVec4A[src]

impl Copy for BVec4A[src]

impl Debug for BVec4A[src]

impl Default for BVec4A[src]

impl Display for BVec4A[src]

impl Eq for BVec4A[src]

impl From<BVec4> for BVec4A[src]

impl From<BVec4A> for BVec4[src]

impl Hash for BVec4A[src]

impl Not for BVec4A[src]

type Output = BVec4A

The resulting type after applying the ! operator.

impl Ord for BVec4A[src]

impl PartialEq<BVec4A> for BVec4A[src]

impl PartialOrd<BVec4A> for BVec4A[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> TypeData for T where
    T: 'static + Send + Sync + Clone
[src]