[][src]Struct shader_types::IVec2

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

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

Fields

inner: [i32; 2]

Implementations

impl IVec2[src]

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

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

This is supported on crate feature mint only.

Construct a IVec2 from any type which is convertable into a mint::Vector2<i32>.

Trait Implementations

impl Clone for IVec2[src]

impl Copy for IVec2[src]

impl Debug for IVec2[src]

impl Default for IVec2[src]

impl From<[i32; 2]> for IVec2[src]

impl From<IVec2> for Vector2<i32>[src]

impl From<IVec2> for [i32; 2][src]

impl From<Vector2<i32>> for IVec2[src]

impl PartialEq<IVec2> for IVec2[src]

impl PartialOrd<IVec2> for IVec2[src]

impl Pod for IVec2[src]

impl StructuralPartialEq for IVec2[src]

impl Zeroable for IVec2[src]

Auto Trait Implementations

impl RefUnwindSafe for IVec2

impl Send for IVec2

impl Sync for IVec2

impl Unpin for IVec2

impl UnwindSafe for IVec2

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.