Struct std140::array [−][src]
Represents an std140 compatible array.
All elements in an std140 array are aligned to at least 16 bytes.
The array! macro may be used to initialize an array.
Example
let std140_array: std140::array<std140::vec2, 2> = std140::array![ std140::vec2(1.0, 0.0), std140::vec2(0.0, 1.0), ];
Trait Implementations
impl<T: Clone, const LEN: usize> Clone for array<T, LEN> where
T: Std140ArrayElement,
[src]
T: Std140ArrayElement,
impl<T: Copy, const LEN: usize> Copy for array<T, LEN> where
T: Std140ArrayElement,
[src]
T: Std140ArrayElement,
impl<T, const LEN: usize> PartialEq<array<T, LEN>> for array<T, { LEN }> where
T: Std140ArrayElement + PartialEq,
[src]
T: Std140ArrayElement + PartialEq,
impl<T, const LEN: usize> ReprStd140 for array<T, { LEN }> where
T: Std140ArrayElement,
[src]
T: Std140ArrayElement,
Auto Trait Implementations
impl<T, const LEN: usize> RefUnwindSafe for array<T, LEN> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const LEN: usize> Send for array<T, LEN> where
T: Send,
T: Send,
impl<T, const LEN: usize> Sync for array<T, LEN> where
T: Sync,
T: Sync,
impl<T, const LEN: usize> Unpin for array<T, LEN> where
T: Unpin,
T: Unpin,
impl<T, const LEN: usize> UnwindSafe for array<T, LEN> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,