[][src]Struct glsl_layout::Element

#[repr(C, align(16))]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> AsMut<T> for Element<T> where
    T: Uniform
[src]

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

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

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]

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

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

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

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

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

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

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

impl<T: Uniform> StructuralEq for Element<T>[src]

impl<T: Uniform> StructuralPartialEq for Element<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Element<T> where
    T: RefUnwindSafe,
    <T as Uniform>::Align: RefUnwindSafe
[src]

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

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

impl<T> Unpin for Element<T> where
    T: Unpin,
    <T as Uniform>::Align: Unpin
[src]

impl<T> UnwindSafe for Element<T> where
    T: UnwindSafe,
    <T as Uniform>::Align: UnwindSafe
[src]

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<!> for T[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.