Struct glsl_layout::Array
source · [−]#[repr(C, align(16))]pub struct Array<T, A>(pub A, pub PhantomData<fn(_: T)>);Expand description
Array of Elements.
This type implements useful traits for converting from unwrapped types.
Tuple Fields
0: A1: PhantomData<fn(_: T)>Implementations
sourceimpl<T, A> Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
impl<T, A> Array<T, A> where
T: Uniform,
A: AsMut<[Element<T>]> + AsRef<[Element<T>]>,
pub fn iter(&self) -> ArrayIter<SliceIter<'_, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
pub fn iter_mut(&mut self) -> ArrayIter<SliceIterMut<'_, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
Trait Implementations
sourceimpl<'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>]>,
sourcefn into_iter(self) -> ArrayIter<SliceIter<'a, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
fn into_iter(self) -> ArrayIter<SliceIter<'a, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
Creates an iterator from a value. Read more
sourceimpl<'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>]>,
sourcefn into_iter(self) -> ArrayIter<SliceIterMut<'a, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
fn into_iter(self) -> ArrayIter<SliceIterMut<'a, Element<T>>>ⓘNotable traits for ArrayIter<SliceIter<'a, Element<T>>>impl<'a, T> Iterator for ArrayIter<SliceIter<'a, Element<T>>> where
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
T: Uniform, type Item = &'a T;impl<'a, T> Iterator for ArrayIter<SliceIterMut<'a, Element<T>>> where
T: Uniform, type Item = &'a mut T;
Creates an iterator from a value. Read more
sourceimpl<T: Ord, A: Ord> Ord for Array<T, A>
impl<T: Ord, A: Ord> Ord for Array<T, A>
sourceimpl<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>
sourcefn partial_cmp(&self, other: &Array<T, A>) -> Option<Ordering>
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
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
sourceimpl<T> Uniform for Array<T, [Element<T>; 0]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 0]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 1]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 1]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 10]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 10]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 11]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 11]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 12]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 12]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 13]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 13]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 14]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 14]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 15]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 15]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 16]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 16]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 17]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 17]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 18]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 18]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 19]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 19]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 2]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 2]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 20]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 20]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 21]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 21]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 22]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 22]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 23]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 23]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 24]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 24]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 25]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 25]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 26]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 26]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 27]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 27]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 28]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 28]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 29]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 29]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 3]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 3]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 30]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 30]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 31]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 31]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 32]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 32]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 4]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 4]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 5]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 5]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 6]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 6]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 7]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 7]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 8]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 8]> where
T: Uniform,
sourceimpl<T> Uniform for Array<T, [Element<T>; 9]> where
T: Uniform,
impl<T> Uniform for Array<T, [Element<T>; 9]> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more