[−][src]Struct glsl_layout::Element
Aligning wrapper. Elements for array are aligned to 16 bytes (size of vec4) at least.
Trait Implementations
impl<T> AsMut<T> for Element<T> where
T: Uniform,
[src]
T: Uniform,
impl<T> AsRef<T> for Element<T> where
T: Uniform,
[src]
T: Uniform,
impl<T: Clone + Uniform> Clone for Element<T> where
T::Align: Clone,
[src]
T::Align: Clone,
impl<T: Copy + Uniform> Copy for Element<T> where
T::Align: Copy,
[src]
T::Align: Copy,
impl<T: Debug + Uniform> Debug for Element<T> where
T::Align: Debug,
[src]
T::Align: Debug,
impl<T: Default + Uniform> Default for Element<T> where
T::Align: Default,
[src]
T::Align: Default,
impl<T: Eq + Uniform> Eq for Element<T> where
T::Align: Eq,
[src]
T::Align: Eq,
impl<T> From<T> for Element<T> where
T: Uniform,
[src]
T: Uniform,
impl<T: Hash + Uniform> Hash for Element<T> where
T::Align: Hash,
[src]
T::Align: Hash,
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: Ord + Uniform> Ord for Element<T> where
T::Align: Ord,
[src]
T::Align: Ord,
pub fn cmp(&self, other: &Element<T>) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl<T: PartialEq + Uniform> PartialEq<Element<T>> for Element<T> where
T::Align: PartialEq,
[src]
T::Align: PartialEq,
impl<T: PartialOrd + Uniform> PartialOrd<Element<T>> for Element<T> where
T::Align: PartialOrd,
[src]
T::Align: PartialOrd,
pub fn partial_cmp(&self, other: &Element<T>) -> Option<Ordering>
[src]
pub fn lt(&self, other: &Element<T>) -> bool
[src]
pub fn le(&self, other: &Element<T>) -> bool
[src]
pub fn gt(&self, other: &Element<T>) -> bool
[src]
pub fn ge(&self, other: &Element<T>) -> bool
[src]
impl<T: Uniform> StructuralEq for Element<T>
[src]
impl<T: Uniform> StructuralPartialEq for Element<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Element<T> where
T: RefUnwindSafe,
<T as Uniform>::Align: RefUnwindSafe,
[src]
T: RefUnwindSafe,
<T as Uniform>::Align: RefUnwindSafe,
impl<T> Send for Element<T> where
T: Send,
<T as Uniform>::Align: Send,
[src]
T: Send,
<T as Uniform>::Align: Send,
impl<T> Sync for Element<T> where
T: Sync,
<T as Uniform>::Align: Sync,
[src]
T: Sync,
<T as Uniform>::Align: Sync,
impl<T> Unpin for Element<T> where
T: Unpin,
<T as Uniform>::Align: Unpin,
[src]
T: Unpin,
<T as Uniform>::Align: Unpin,
impl<T> UnwindSafe for Element<T> where
T: UnwindSafe,
<T as Uniform>::Align: UnwindSafe,
[src]
T: UnwindSafe,
<T as Uniform>::Align: 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<!> for 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>,