[][src]Struct shader_types::Vec4

#[repr(C, align(16))]pub struct Vec4 {
    pub inner: [f32; 4],
}

Vector of 4 f32 values. Has size 16 and alignment 16.

Fields

inner: [f32; 4]

Implementations

impl Vec4[src]

pub fn new(inner: [f32; 4]) -> Self[src]

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

This is supported on crate feature mint only.

Construct a Vec4 from any type which is convertable into a mint::Vector4<f32>.

Trait Implementations

impl Clone for Vec4[src]

impl Copy for Vec4[src]

impl Debug for Vec4[src]

impl Default for Vec4[src]

impl From<[f32; 4]> for Vec4[src]

impl From<Vec4> for Vector4<f32>[src]

impl From<Vec4> for [f32; 4][src]

impl From<Vector4<f32>> for Vec4[src]

impl PartialEq<Vec4> for Vec4[src]

impl PartialOrd<Vec4> for Vec4[src]

impl Pod for Vec4[src]

impl StructuralPartialEq for Vec4[src]

impl Zeroable for Vec4[src]

Auto Trait Implementations

impl RefUnwindSafe for Vec4

impl Send for Vec4

impl Sync for Vec4

impl Unpin for Vec4

impl UnwindSafe for Vec4

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.