Struct glsl_layout::Array[][src]

#[repr(C)]
pub struct Array<T, A>(pub A, pub PhantomData<fn(_: T)>);

Array of Elements. This type implements useful traits for converting from unwrapped types.

Methods

impl<T, A> Array<T, A>
[src]

impl<T, A> Array<T, A> where
    T: Uniform,
    A: AsMut<[Element<T>]> + AsRef<[Element<T>]>, 
[src]

Important traits for ArrayIter<SliceIter<'a, Element<T>>>

Important traits for ArrayIter<SliceIter<'a, Element<T>>>

Trait Implementations

impl<T: Clone, A: Clone> Clone for Array<T, A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy, A: Copy> Copy for Array<T, A>
[src]

impl<T: Debug, A: Debug> Debug for Array<T, A>
[src]

Formats the value using the given formatter. Read more

impl<T: Default, A: Default> Default for Array<T, A>
[src]

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

impl<T: PartialOrd, A: PartialOrd> PartialOrd for Array<T, A>
[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, A: PartialEq> PartialEq for Array<T, A>
[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, A: Ord> Ord for Array<T, A>
[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, A: Eq> Eq for Array<T, A>
[src]

impl<T: Hash, A: Hash> Hash for Array<T, A>
[src]

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

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

impl<T, A> AsRef<A> for Array<T, A>
[src]

Performs the conversion.

impl<T, A> AsMut<A> for Array<T, A>
[src]

Performs the conversion.

impl<'a, T, A> IntoIterator for &'a Array<T, A> where
    T: Uniform,
    A: AsMut<[Element<T>]> + AsRef<[Element<T>]>, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for ArrayIter<SliceIter<'a, Element<T>>>

Creates an iterator from a value. Read more

impl<'a, T, A> IntoIterator for &'a mut Array<T, A> where
    T: Uniform,
    A: AsMut<[Element<T>]> + AsRef<[Element<T>]>, 
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for ArrayIter<SliceIter<'a, Element<T>>>

Creates an iterator from a value. Read more

impl<T, U> From<[T; 0]> for Array<U, [U; 0]> where
    T: Into<U>, 
[src]

Performs the conversion.

impl<T, U> From<[T; 0]> for Array<U, [Element<U>; 0]> where
    T: Into<U>,
    U: Uniform
[src]

Performs the conversion.

impl<T> Uniform for Array<T, [Element<T>; 0]> where
    T: Uniform
[src]

ZST that enforces alignment required for this type.

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

The value of the Align.

Get aligned data from structure.

impl<T> Std140 for Array<T, [Element<T>; 0]> where
    T: Std140
[src]

impl<T, U> From<[T; 1]> for Array<U, [U; 1]> where
    T: Into<U>, 
[src]

Performs the conversion.

impl<T, U> From<[T; 1]> for Array<U, [Element<U>; 1]> where
    T: Into<U>,
    U: Uniform
[src]

Performs the conversion.

impl<T> Uniform for Array<T, [Element<T>; 1]> where
    T: Uniform
[src]

ZST that enforces alignment required for this type.

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

The value of the Align.

Get aligned data from structure.

impl<T> Std140 for Array<T, [Element<T>; 1]> where
    T: Std140
[src]

impl<T, U> From<[T; 2]> for Array<U, [U; 2]> where
    T: Into<U>, 
[src]

Performs the conversion.

impl<T, U> From<[T; 2]> for Array<U, [Element<U>; 2]> where
    T: Into<U>,
    U: Uniform
[src]

Performs the conversion.

impl<T> Uniform for Array<T, [Element<T>; 2]> where
    T: Uniform
[src]

ZST that enforces alignment required for this type.

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

The value of the Align.

Get aligned data from structure.

impl<T> Std140 for Array<T, [Element<T>; 2]> where
    T: Std140
[src]

impl<T, U> From<[T; 3]> for Array<U, [U; 3]> where
    T: Into<U>, 
[src]

Performs the conversion.

impl<T, U> From<[T; 3]> for Array<U, [Element<U>; 3]> where
    T: Into<U>,
    U: Uniform
[src]

Performs the conversion.

impl<T> Uniform for Array<T, [Element<T>; 3]> where
    T: Uniform
[src]

ZST that enforces alignment required for this type.

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

The value of the Align.

Get aligned data from structure.

impl<T> Std140 for Array<T, [Element<T>; 3]> where
    T: Std140
[src]

impl<T, U> From<[T; 4]> for Array<U, [U; 4]> where
    T: Into<U>, 
[src]

Performs the conversion.

impl<T, U> From<[T; 4]> for Array<U, [Element<U>; 4]> where
    T: Into<U>,
    U: Uniform
[src]

Performs the conversion.

impl<T> Uniform for Array<T, [Element<T>; 4]> where
    T: Uniform
[src]

ZST that enforces alignment required for this type.

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

The value of the Align.

Get aligned data from structure.

impl<T> Std140 for Array<T, [Element<T>; 4]> where
    T: Std140
[src]

Auto Trait Implementations

impl<T, A> Send for Array<T, A> where
    A: Send

impl<T, A> Sync for Array<T, A> where
    A: Sync