[−][src]Struct glam::Vec2Mask
A 2-dimensional vector mask.
This type is typically created by comparison methods on Vec2.
Methods
impl Vec2Mask[src]
pub fn new(x: bool, y: bool) -> Self[src]
pub fn mask(self) -> u32[src]
Deprecated since 0.7.1:
please use bitmask instead
pub fn bitmask(self) -> u32[src]
pub fn any(self) -> bool[src]
pub fn all(self) -> bool[src]
pub fn select(self, if_true: Vec2, if_false: Vec2) -> Vec2[src]
Trait Implementations
impl Clone for Vec2Mask[src]
impl Default for Vec2Mask[src]
impl Copy for Vec2Mask[src]
impl Not for Vec2Mask[src]
impl BitAnd<Vec2Mask> for Vec2Mask[src]
type Output = Self
The resulting type after applying the & operator.
fn bitand(self, rhs: Self) -> Self[src]
impl BitOr<Vec2Mask> for Vec2Mask[src]
type Output = Self
The resulting type after applying the | operator.
fn bitor(self, rhs: Self) -> Self[src]
impl BitAndAssign<Vec2Mask> for Vec2Mask[src]
fn bitand_assign(&mut self, rhs: Self)[src]
impl BitOrAssign<Vec2Mask> for Vec2Mask[src]
fn bitor_assign(&mut self, rhs: Self)[src]
Auto Trait Implementations
impl Send for Vec2Mask
impl Sync for Vec2Mask
impl Unpin for Vec2Mask
impl RefUnwindSafe for Vec2Mask
impl UnwindSafe for Vec2Mask
Blanket Implementations
impl<T> From<T> for T[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.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,