[][src]Struct shader_types::BVec2

#[repr(C, align(8))]pub struct BVec2 {
    pub inner: [Bool; 2],
}

Vector of 2 Bool values. Has size 8 and alignment 8.

Fields

inner: [Bool; 2]

Implementations

impl BVec2[src]

pub fn new(inner: [Bool; 2]) -> Self[src]

pub fn from_mint<T: Into<Vector2<Bool>>>(value: T) -> Self[src]

This is supported on crate feature mint only.

Construct a BVec2 from any type which is convertable into a mint::Vector2<Bool>.

Trait Implementations

impl Clone for BVec2[src]

impl Copy for BVec2[src]

impl Debug for BVec2[src]

impl Default for BVec2[src]

impl From<[Bool; 2]> for BVec2[src]

impl From<BVec2> for Vector2<Bool>[src]

impl From<BVec2> for [Bool; 2][src]

impl From<Vector2<Bool>> for BVec2[src]

impl PartialEq<BVec2> for BVec2[src]

impl PartialOrd<BVec2> for BVec2[src]

impl Pod for BVec2[src]

impl StructuralPartialEq for BVec2[src]

impl Zeroable for BVec2[src]

Auto Trait Implementations

impl RefUnwindSafe for BVec2

impl Send for BVec2

impl Sync for BVec2

impl Unpin for BVec2

impl UnwindSafe for BVec2

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> From<T> 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, 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.