Struct glsl_layout::Array [−][src]
#[repr(C)]pub struct Array<T, A>(pub A, pub PhantomData<fn(_: T)>);
Array of Element
s.
This type implements useful traits for converting from unwrapped types.
Methods
impl<T, A> Array<T, A>
[src]
impl<T, A> Array<T, A>
impl<T, A> Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
[src]
impl<T, A> Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
pub fn iter<'a>(&'a self) -> ArrayIter<SliceIter<'a, Element<T>>>
[src]
pub fn iter<'a>(&'a self) -> ArrayIter<SliceIter<'a, Element<T>>>
pub fn iter_mut<'a>(&'a mut self) -> ArrayIter<SliceIterMut<'a, Element<T>>>
[src]
pub fn iter_mut<'a>(&'a mut self) -> ArrayIter<SliceIterMut<'a, Element<T>>>
Trait Implementations
impl<T: Clone, A: Clone> Clone for Array<T, A>
[src]
impl<T: Clone, A: Clone> Clone for Array<T, A>
fn clone(&self) -> Array<T, A>
[src]
fn clone(&self) -> Array<T, A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Copy, A: Copy> Copy for Array<T, A>
[src]
impl<T: Copy, A: Copy> Copy for Array<T, A>
impl<T: Debug, A: Debug> Debug for Array<T, A>
[src]
impl<T: Debug, A: Debug> Debug for Array<T, A>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Default, A: Default> Default for Array<T, A>
[src]
impl<T: Default, A: Default> Default for Array<T, A>
impl<T: PartialOrd, A: PartialOrd> PartialOrd for Array<T, A>
[src]
impl<T: PartialOrd, A: PartialOrd> PartialOrd for Array<T, A>
fn partial_cmp(&self, other: &Array<T, A>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Array<T, A>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Array<T, A>) -> bool
[src]
fn lt(&self, other: &Array<T, A>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Array<T, A>) -> bool
[src]
fn le(&self, other: &Array<T, A>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Array<T, A>) -> bool
[src]
fn gt(&self, other: &Array<T, A>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Array<T, A>) -> bool
[src]
fn ge(&self, other: &Array<T, A>) -> bool
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]
impl<T: PartialEq, A: PartialEq> PartialEq for Array<T, A>
fn eq(&self, other: &Array<T, A>) -> bool
[src]
fn eq(&self, other: &Array<T, A>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Array<T, A>) -> bool
[src]
fn ne(&self, other: &Array<T, A>) -> bool
This method tests for !=
.
impl<T: Ord, A: Ord> Ord for Array<T, A>
[src]
impl<T: Ord, A: Ord> Ord for Array<T, A>
fn cmp(&self, other: &Array<T, A>) -> Ordering
[src]
fn cmp(&self, other: &Array<T, A>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<T: Eq, A: Eq> Eq for Array<T, A>
[src]
impl<T: Eq, A: Eq> Eq for Array<T, A>
impl<T: Hash, A: Hash> Hash for Array<T, A>
[src]
impl<T: Hash, A: Hash> Hash for Array<T, A>
fn hash<__HTA: Hasher>(&self, state: &mut __HTA)
[src]
fn hash<__HTA: Hasher>(&self, state: &mut __HTA)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T, A> AsRef<A> for Array<T, A>
[src]
impl<T, A> AsRef<A> for Array<T, A>
impl<T, A> AsMut<A> for Array<T, A>
[src]
impl<T, A> AsMut<A> for Array<T, A>
impl<'a, T, A> IntoIterator for &'a Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
[src]
impl<'a, T, A> IntoIterator for &'a Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
type Item = &'a T
The type of the elements being iterated over.
type IntoIter = ArrayIter<SliceIter<'a, Element<T>>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> ArrayIter<SliceIter<'a, Element<T>>>
[src]
fn into_iter(self) -> 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]
impl<'a, T, A> IntoIterator for &'a mut Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
type Item = &'a mut T
The type of the elements being iterated over.
type IntoIter = ArrayIter<SliceIterMut<'a, Element<T>>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> ArrayIter<SliceIterMut<'a, Element<T>>>
[src]
fn into_iter(self) -> ArrayIter<SliceIterMut<'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]
impl<T, U> From<[T; 0]> for Array<U, [U; 0]> where
T: Into<U>,
impl<T, U> From<[T; 0]> for Array<U, [Element<U>; 0]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 0]> for Array<U, [Element<U>; 0]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 0]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 0]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 0]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 0]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 0]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 0]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 0]> where
T: Std140,
impl<T, U> From<[T; 1]> for Array<U, [U; 1]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 1]> for Array<U, [U; 1]> where
T: Into<U>,
impl<T, U> From<[T; 1]> for Array<U, [Element<U>; 1]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 1]> for Array<U, [Element<U>; 1]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 1]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 1]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 1]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 1]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 1]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 1]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 1]> where
T: Std140,
impl<T, U> From<[T; 2]> for Array<U, [U; 2]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 2]> for Array<U, [U; 2]> where
T: Into<U>,
impl<T, U> From<[T; 2]> for Array<U, [Element<U>; 2]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 2]> for Array<U, [Element<U>; 2]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 2]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 2]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 2]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 2]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 2]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 2]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 2]> where
T: Std140,
impl<T, U> From<[T; 3]> for Array<U, [U; 3]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 3]> for Array<U, [U; 3]> where
T: Into<U>,
impl<T, U> From<[T; 3]> for Array<U, [Element<U>; 3]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 3]> for Array<U, [Element<U>; 3]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 3]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 3]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 3]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 3]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 3]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 3]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 3]> where
T: Std140,
impl<T, U> From<[T; 4]> for Array<U, [U; 4]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 4]> for Array<U, [U; 4]> where
T: Into<U>,
impl<T, U> From<[T; 4]> for Array<U, [Element<U>; 4]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 4]> for Array<U, [Element<U>; 4]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 4]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 4]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 4]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 4]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 4]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 4]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 4]> where
T: Std140,
impl<T, U> From<[T; 5]> for Array<U, [U; 5]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 5]> for Array<U, [U; 5]> where
T: Into<U>,
impl<T, U> From<[T; 5]> for Array<U, [Element<U>; 5]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 5]> for Array<U, [Element<U>; 5]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 5]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 5]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 5]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 5]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 5]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 5]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 5]> where
T: Std140,
impl<T, U> From<[T; 6]> for Array<U, [U; 6]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 6]> for Array<U, [U; 6]> where
T: Into<U>,
impl<T, U> From<[T; 6]> for Array<U, [Element<U>; 6]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 6]> for Array<U, [Element<U>; 6]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 6]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 6]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 6]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 6]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 6]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 6]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 6]> where
T: Std140,
impl<T, U> From<[T; 7]> for Array<U, [U; 7]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 7]> for Array<U, [U; 7]> where
T: Into<U>,
impl<T, U> From<[T; 7]> for Array<U, [Element<U>; 7]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 7]> for Array<U, [Element<U>; 7]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 7]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 7]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 7]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 7]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 7]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 7]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 7]> where
T: Std140,
impl<T, U> From<[T; 8]> for Array<U, [U; 8]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 8]> for Array<U, [U; 8]> where
T: Into<U>,
impl<T, U> From<[T; 8]> for Array<U, [Element<U>; 8]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 8]> for Array<U, [Element<U>; 8]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 8]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 8]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 8]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 8]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 8]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 8]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 8]> where
T: Std140,
impl<T, U> From<[T; 9]> for Array<U, [U; 9]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 9]> for Array<U, [U; 9]> where
T: Into<U>,
impl<T, U> From<[T; 9]> for Array<U, [Element<U>; 9]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 9]> for Array<U, [Element<U>; 9]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 9]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 9]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 9]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 9]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 9]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 9]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 9]> where
T: Std140,
impl<T, U> From<[T; 10]> for Array<U, [U; 10]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 10]> for Array<U, [U; 10]> where
T: Into<U>,
impl<T, U> From<[T; 10]> for Array<U, [Element<U>; 10]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 10]> for Array<U, [Element<U>; 10]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 10]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 10]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 10]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 10]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 10]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 10]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 10]> where
T: Std140,
impl<T, U> From<[T; 11]> for Array<U, [U; 11]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 11]> for Array<U, [U; 11]> where
T: Into<U>,
impl<T, U> From<[T; 11]> for Array<U, [Element<U>; 11]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 11]> for Array<U, [Element<U>; 11]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 11]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 11]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 11]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 11]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 11]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 11]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 11]> where
T: Std140,
impl<T, U> From<[T; 12]> for Array<U, [U; 12]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 12]> for Array<U, [U; 12]> where
T: Into<U>,
impl<T, U> From<[T; 12]> for Array<U, [Element<U>; 12]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 12]> for Array<U, [Element<U>; 12]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 12]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 12]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 12]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 12]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 12]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 12]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 12]> where
T: Std140,
impl<T, U> From<[T; 13]> for Array<U, [U; 13]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 13]> for Array<U, [U; 13]> where
T: Into<U>,
impl<T, U> From<[T; 13]> for Array<U, [Element<U>; 13]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 13]> for Array<U, [Element<U>; 13]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 13]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 13]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 13]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 13]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 13]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 13]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 13]> where
T: Std140,
impl<T, U> From<[T; 14]> for Array<U, [U; 14]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 14]> for Array<U, [U; 14]> where
T: Into<U>,
impl<T, U> From<[T; 14]> for Array<U, [Element<U>; 14]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 14]> for Array<U, [Element<U>; 14]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 14]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 14]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 14]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 14]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 14]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 14]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 14]> where
T: Std140,
impl<T, U> From<[T; 15]> for Array<U, [U; 15]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 15]> for Array<U, [U; 15]> where
T: Into<U>,
impl<T, U> From<[T; 15]> for Array<U, [Element<U>; 15]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 15]> for Array<U, [Element<U>; 15]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 15]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 15]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 15]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 15]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 15]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 15]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 15]> where
T: Std140,
impl<T, U> From<[T; 16]> for Array<U, [U; 16]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 16]> for Array<U, [U; 16]> where
T: Into<U>,
impl<T, U> From<[T; 16]> for Array<U, [Element<U>; 16]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 16]> for Array<U, [Element<U>; 16]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 16]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 16]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 16]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 16]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 16]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 16]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 16]> where
T: Std140,
impl<T, U> From<[T; 17]> for Array<U, [U; 17]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 17]> for Array<U, [U; 17]> where
T: Into<U>,
impl<T, U> From<[T; 17]> for Array<U, [Element<U>; 17]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 17]> for Array<U, [Element<U>; 17]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 17]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 17]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 17]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 17]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 17]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 17]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 17]> where
T: Std140,
impl<T, U> From<[T; 18]> for Array<U, [U; 18]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 18]> for Array<U, [U; 18]> where
T: Into<U>,
impl<T, U> From<[T; 18]> for Array<U, [Element<U>; 18]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 18]> for Array<U, [Element<U>; 18]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 18]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 18]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 18]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 18]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 18]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 18]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 18]> where
T: Std140,
impl<T, U> From<[T; 19]> for Array<U, [U; 19]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 19]> for Array<U, [U; 19]> where
T: Into<U>,
impl<T, U> From<[T; 19]> for Array<U, [Element<U>; 19]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 19]> for Array<U, [Element<U>; 19]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 19]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 19]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 19]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 19]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 19]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 19]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 19]> where
T: Std140,
impl<T, U> From<[T; 20]> for Array<U, [U; 20]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 20]> for Array<U, [U; 20]> where
T: Into<U>,
impl<T, U> From<[T; 20]> for Array<U, [Element<U>; 20]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 20]> for Array<U, [Element<U>; 20]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 20]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 20]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 20]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 20]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 20]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 20]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 20]> where
T: Std140,
impl<T, U> From<[T; 21]> for Array<U, [U; 21]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 21]> for Array<U, [U; 21]> where
T: Into<U>,
impl<T, U> From<[T; 21]> for Array<U, [Element<U>; 21]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 21]> for Array<U, [Element<U>; 21]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 21]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 21]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 21]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 21]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 21]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 21]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 21]> where
T: Std140,
impl<T, U> From<[T; 22]> for Array<U, [U; 22]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 22]> for Array<U, [U; 22]> where
T: Into<U>,
impl<T, U> From<[T; 22]> for Array<U, [Element<U>; 22]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 22]> for Array<U, [Element<U>; 22]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 22]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 22]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 22]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 22]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 22]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 22]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 22]> where
T: Std140,
impl<T, U> From<[T; 23]> for Array<U, [U; 23]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 23]> for Array<U, [U; 23]> where
T: Into<U>,
impl<T, U> From<[T; 23]> for Array<U, [Element<U>; 23]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 23]> for Array<U, [Element<U>; 23]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 23]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 23]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 23]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 23]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 23]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 23]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 23]> where
T: Std140,
impl<T, U> From<[T; 24]> for Array<U, [U; 24]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 24]> for Array<U, [U; 24]> where
T: Into<U>,
impl<T, U> From<[T; 24]> for Array<U, [Element<U>; 24]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 24]> for Array<U, [Element<U>; 24]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 24]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 24]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 24]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 24]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 24]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 24]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 24]> where
T: Std140,
impl<T, U> From<[T; 25]> for Array<U, [U; 25]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 25]> for Array<U, [U; 25]> where
T: Into<U>,
impl<T, U> From<[T; 25]> for Array<U, [Element<U>; 25]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 25]> for Array<U, [Element<U>; 25]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 25]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 25]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 25]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 25]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 25]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 25]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 25]> where
T: Std140,
impl<T, U> From<[T; 26]> for Array<U, [U; 26]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 26]> for Array<U, [U; 26]> where
T: Into<U>,
impl<T, U> From<[T; 26]> for Array<U, [Element<U>; 26]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 26]> for Array<U, [Element<U>; 26]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 26]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 26]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 26]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 26]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 26]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 26]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 26]> where
T: Std140,
impl<T, U> From<[T; 27]> for Array<U, [U; 27]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 27]> for Array<U, [U; 27]> where
T: Into<U>,
impl<T, U> From<[T; 27]> for Array<U, [Element<U>; 27]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 27]> for Array<U, [Element<U>; 27]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 27]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 27]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 27]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 27]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 27]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 27]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 27]> where
T: Std140,
impl<T, U> From<[T; 28]> for Array<U, [U; 28]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 28]> for Array<U, [U; 28]> where
T: Into<U>,
impl<T, U> From<[T; 28]> for Array<U, [Element<U>; 28]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 28]> for Array<U, [Element<U>; 28]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 28]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 28]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 28]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 28]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 28]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 28]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 28]> where
T: Std140,
impl<T, U> From<[T; 29]> for Array<U, [U; 29]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 29]> for Array<U, [U; 29]> where
T: Into<U>,
impl<T, U> From<[T; 29]> for Array<U, [Element<U>; 29]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 29]> for Array<U, [Element<U>; 29]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 29]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 29]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 29]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 29]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 29]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 29]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 29]> where
T: Std140,
impl<T, U> From<[T; 30]> for Array<U, [U; 30]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 30]> for Array<U, [U; 30]> where
T: Into<U>,
impl<T, U> From<[T; 30]> for Array<U, [Element<U>; 30]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 30]> for Array<U, [Element<U>; 30]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 30]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 30]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 30]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 30]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 30]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 30]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 30]> where
T: Std140,
impl<T, U> From<[T; 31]> for Array<U, [U; 31]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 31]> for Array<U, [U; 31]> where
T: Into<U>,
impl<T, U> From<[T; 31]> for Array<U, [Element<U>; 31]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 31]> for Array<U, [Element<U>; 31]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 31]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 31]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 31]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 31]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 31]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 31]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 31]> where
T: Std140,
impl<T, U> From<[T; 32]> for Array<U, [U; 32]> where
T: Into<U>,
[src]
impl<T, U> From<[T; 32]> for Array<U, [U; 32]> where
T: Into<U>,
impl<T, U> From<[T; 32]> for Array<U, [Element<U>; 32]> where
T: Into<U>,
U: Uniform,
[src]
impl<T, U> From<[T; 32]> for Array<U, [Element<U>; 32]> where
T: Into<U>,
U: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 32]> where
T: Uniform,
[src]
impl<T> Uniform for Array<T, [Element<T>; 32]> where
T: Uniform,
type Align = Align16
ZST that enforces alignment required for this type.
type Std140 = Array<T::Std140, [Element<T::Std140>; 32]>
Type that contain same data with memory layout matching glsl's layout(std140)
.
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 32]>
[src]
fn std140(&self) -> Array<T::Std140, [Element<T::Std140>; 32]>
Get aligned data from structure.
impl<T> Std140 for Array<T, [Element<T>; 32]> where
T: Std140,
[src]
impl<T> Std140 for Array<T, [Element<T>; 32]> where
T: Std140,