Struct glsl_layout::Array
source · #[repr(C, align(16))]pub struct Array<T, A>(pub A, pub PhantomData<fn(_: T)>);
Expand description
Array of Element
s.
This type implements useful traits for converting from unwrapped types.
Tuple Fields§
§0: A
§1: PhantomData<fn(_: T)>
Implementations§
Trait Implementations§
source§impl<T, U, const N: usize> From<[T; N]> for Array<U, [Element<U>; N]>where
T: Into<U>,
U: Uniform,
impl<T, U, const N: usize> From<[T; N]> for Array<U, [Element<U>; N]>where
T: Into<U>,
U: Uniform,
source§impl<'a, T, A> IntoIterator for &'a Array<T, A>where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
impl<'a, T, A> IntoIterator for &'a Array<T, A>where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
source§impl<'a, T, A> IntoIterator for &'a mut Array<T, A>where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
impl<'a, T, A> IntoIterator for &'a mut Array<T, A>where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
source§impl<T: Ord, A: Ord> Ord for Array<T, A>
impl<T: Ord, A: Ord> Ord for Array<T, A>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq, A: PartialEq> PartialEq<Array<T, A>> for Array<T, A>
impl<T: PartialEq, A: PartialEq> PartialEq<Array<T, A>> for Array<T, A>
source§impl<T: PartialOrd, A: PartialOrd> PartialOrd<Array<T, A>> for Array<T, A>
impl<T: PartialOrd, A: PartialOrd> PartialOrd<Array<T, A>> for Array<T, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more