[][src]Struct glsl_layout::vec4

#[repr(transparent)]
pub struct vec4(_);

Vector of 4 float values. foo: vec4 is equivalent to glsl's vec4 foo;

Examples

let x: vec4 = [1f32; 4].into();

Trait Implementations

impl Std140 for vec4[src]

impl AsStd140 for vec4[src]

type Align = Align16

ZST that enforces alignment required for this type.

type Std140 = vec4

Type that contain same data with memory layout matching glsl's layout(std140).

impl Copy for vec4[src]

impl AsRef<[f32; 4]> for vec4[src]

impl AsRef<[f32]> for vec4[src]

impl Default for vec4[src]

impl Clone for vec4[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<vec4> for vec4[src]

impl PartialEq<vec4> for vec4[src]

impl<T> From<[T; 4]> for vec4 where
    T: Into<float>, 
[src]

impl AsMut<[f32; 4]> for vec4[src]

impl AsMut<[f32]> for vec4[src]

impl Debug for vec4[src]

Auto Trait Implementations

impl Unpin for vec4

impl Sync for vec4

impl Send for vec4

impl UnwindSafe for vec4

impl RefUnwindSafe for vec4

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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> Borrow<T> for T where
    T: ?Sized
[src]

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

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