Struct glsl_layout::Element[][src]

#[repr(C)]
pub struct Element<T: Uniform>(pub T, pub T::Align);

Aligning wrapper. Elements for array are aligned to 16 bytes (size of vec4) at least.

Trait Implementations

impl<T: Clone + Uniform> Clone for Element<T> where
    T::Align: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + Uniform> Copy for Element<T> where
    T::Align: Copy
[src]

impl<T: Debug + Uniform> Debug for Element<T> where
    T::Align: Debug
[src]

Formats the value using the given formatter. Read more

impl<T: Default + Uniform> Default for Element<T> where
    T::Align: Default
[src]

Returns the "default value" for a type. Read more

impl<T: PartialOrd + Uniform> PartialOrd for Element<T> where
    T::Align: PartialOrd
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T: PartialEq + Uniform> PartialEq for Element<T> where
    T::Align: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Ord + Uniform> Ord for Element<T> where
    T::Align: Ord
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: Eq + Uniform> Eq for Element<T> where
    T::Align: Eq
[src]

impl<T: Hash + Uniform> Hash for Element<T> where
    T::Align: Hash
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> From<T> for Element<T> where
    T: Uniform
[src]

Performs the conversion.

impl<T> AsRef<T> for Element<T> where
    T: Uniform
[src]

Performs the conversion.

impl<T> AsMut<T> for Element<T> where
    T: Uniform
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Element<T> where
    T: Send,
    <T as Uniform>::Align: Send

impl<T> Sync for Element<T> where
    T: Sync,
    <T as Uniform>::Align: Sync