Struct glsl_layout2::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 moresource§impl<T, const N: usize> Uniform for Array<T, [Element<T>; N]>where
T: Uniform,
impl<T, const N: usize> Uniform for Array<T, [Element<T>; N]>where T: Uniform,
impl<T: Copy, A: Copy> Copy for Array<T, A>
impl<T: Eq, A: Eq> Eq for Array<T, A>
impl<T, A> StructuralEq for Array<T, A>
impl<T, A> StructuralPartialEq for Array<T, A>
Auto Trait Implementations§
impl<T, A> RefUnwindSafe for Array<T, A>where A: RefUnwindSafe,
impl<T, A> Send for Array<T, A>where A: Send,
impl<T, A> Sync for Array<T, A>where A: Sync,
impl<T, A> Unpin for Array<T, A>where A: Unpin,
impl<T, A> UnwindSafe for Array<T, A>where A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more