[][src]Struct glam::Vec2Mask

#[repr(C)]
pub struct 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 Default for Vec2Mask[src]

impl Clone for Vec2Mask[src]

impl Copy for Vec2Mask[src]

impl Not for Vec2Mask[src]

type Output = Self

The resulting type after applying the ! operator.

impl BitAnd<Vec2Mask> for Vec2Mask[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<Vec2Mask> for Vec2Mask[src]

type Output = Self

The resulting type after applying the | operator.

impl BitAndAssign<Vec2Mask> for Vec2Mask[src]

impl BitOrAssign<Vec2Mask> for Vec2Mask[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,