Struct std140::array[][src]

pub struct array<T, const LEN: usize> where
    T: Std140ArrayElement
{ /* fields omitted */ }

Represents an std140 compatible array.

All elements in an std140 array are aligned to at least 16 bytes.

The array! macro may be used to initialize an array.

Example

let std140_array: std140::array<std140::vec2, 2> = std140::array![
    std140::vec2(1.0, 0.0),
    std140::vec2(0.0, 1.0),
];

Trait Implementations

impl<T: Clone, const LEN: usize> Clone for array<T, LEN> where
    T: Std140ArrayElement
[src]

impl<T: Copy, const LEN: usize> Copy for array<T, LEN> where
    T: Std140ArrayElement
[src]

impl<T, const LEN: usize> PartialEq<array<T, LEN>> for array<T, { LEN }> where
    T: Std140ArrayElement + PartialEq
[src]

impl<T, const LEN: usize> ReprStd140 for array<T, { LEN }> where
    T: Std140ArrayElement
[src]

Auto Trait Implementations

impl<T, const LEN: usize> RefUnwindSafe for array<T, LEN> where
    T: RefUnwindSafe

impl<T, const LEN: usize> Send for array<T, LEN> where
    T: Send

impl<T, const LEN: usize> Sync for array<T, LEN> where
    T: Sync

impl<T, const LEN: usize> Unpin for array<T, LEN> where
    T: Unpin

impl<T, const LEN: usize> UnwindSafe for array<T, LEN> where
    T: UnwindSafe

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.