Struct bevy_math::BVec4A [−][src]
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.
pub fn bitand(self, other: BVec4A) -> BVec4A
[src]
impl BitAndAssign<BVec4A> for BVec4A
[src]
pub fn bitand_assign(&mut self, other: BVec4A)
[src]
impl BitOr<BVec4A> for BVec4A
[src]
type Output = BVec4A
The resulting type after applying the |
operator.
pub fn bitor(self, other: BVec4A) -> BVec4A
[src]
impl BitOrAssign<BVec4A> for BVec4A
[src]
pub fn bitor_assign(&mut self, other: 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]
pub fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Not for BVec4A
[src]
type Output = BVec4A
The resulting type after applying the !
operator.
pub fn not(self) -> BVec4A
[src]
impl Ord for BVec4A
[src]
pub fn cmp(&self, other: &BVec4A) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<BVec4A> for BVec4A
[src]
pub fn eq(&self, other: &BVec4A) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash + ?Sized,
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
B: BuildHasher,
H: Hash + ?Sized,
B: BuildHasher,
H: Hash + ?Sized,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> TypeData for T where
T: 'static + Send + Sync + Clone,
[src]
T: 'static + Send + Sync + Clone,