Enum gl_helpers::AttributeKind
source · pub enum AttributeKind {
Bool,
Int,
Float,
BoolVec2,
IntVec2,
FloatVec2,
BoolVec3,
IntVec3,
FloatVec3,
BoolVec4,
IntVec4,
FloatVec4,
}
Variants
Implementations
Trait Implementations
sourceimpl Clone for AttributeKind
impl Clone for AttributeKind
sourcefn clone(&self) -> AttributeKind
fn clone(&self) -> AttributeKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AttributeKind
impl Debug for AttributeKind
sourceimpl<'a> From<&'a AttributeKind> for GLenum
impl<'a> From<&'a AttributeKind> for GLenum
sourcefn from(attribute_kind: &'a AttributeKind) -> Self
fn from(attribute_kind: &'a AttributeKind) -> Self
Converts to this type from the input type.
sourceimpl From<AttributeKind> for GLenum
impl From<AttributeKind> for GLenum
sourcefn from(attribute_kind: AttributeKind) -> Self
fn from(attribute_kind: AttributeKind) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for AttributeKind
impl From<u32> for AttributeKind
sourceimpl Hash for AttributeKind
impl Hash for AttributeKind
sourceimpl Ord for AttributeKind
impl Ord for AttributeKind
sourcefn cmp(&self, other: &AttributeKind) -> Ordering
fn cmp(&self, other: &AttributeKind) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AttributeKind> for AttributeKind
impl PartialEq<AttributeKind> for AttributeKind
sourcefn eq(&self, other: &AttributeKind) -> bool
fn eq(&self, other: &AttributeKind) -> bool
sourceimpl PartialOrd<AttributeKind> for AttributeKind
impl PartialOrd<AttributeKind> for AttributeKind
sourcefn partial_cmp(&self, other: &AttributeKind) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeKind) -> Option<Ordering>
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 moreimpl Copy for AttributeKind
impl Eq for AttributeKind
impl StructuralEq for AttributeKind
impl StructuralPartialEq for AttributeKind
Auto Trait Implementations
impl RefUnwindSafe for AttributeKind
impl Send for AttributeKind
impl Sync for AttributeKind
impl Unpin for AttributeKind
impl UnwindSafe for AttributeKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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