Enum gl_helpers::UniformKind
source · pub enum UniformKind {
Float,
Int,
FloatVec2,
IntVec2,
FloatVec3,
IntVec3,
FloatVec4,
IntVec4,
FloatMat2,
FloatMat3,
FloatMat4,
Sampler2D,
}
Variants
Trait Implementations
sourceimpl Clone for UniformKind
impl Clone for UniformKind
sourcefn clone(&self) -> UniformKind
fn clone(&self) -> UniformKind
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 UniformKind
impl Debug for UniformKind
sourceimpl<'a> From<&'a UniformKind> for GLenum
impl<'a> From<&'a UniformKind> for GLenum
sourcefn from(uniform_kind: &'a UniformKind) -> Self
fn from(uniform_kind: &'a UniformKind) -> Self
Converts to this type from the input type.
sourceimpl From<UniformKind> for GLenum
impl From<UniformKind> for GLenum
sourcefn from(uniform_kind: UniformKind) -> Self
fn from(uniform_kind: UniformKind) -> Self
Converts to this type from the input type.
sourceimpl From<u32> for UniformKind
impl From<u32> for UniformKind
sourceimpl Hash for UniformKind
impl Hash for UniformKind
sourceimpl Ord for UniformKind
impl Ord for UniformKind
sourcefn cmp(&self, other: &UniformKind) -> Ordering
fn cmp(&self, other: &UniformKind) -> 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<UniformKind> for UniformKind
impl PartialEq<UniformKind> for UniformKind
sourcefn eq(&self, other: &UniformKind) -> bool
fn eq(&self, other: &UniformKind) -> bool
sourceimpl PartialOrd<UniformKind> for UniformKind
impl PartialOrd<UniformKind> for UniformKind
sourcefn partial_cmp(&self, other: &UniformKind) -> Option<Ordering>
fn partial_cmp(&self, other: &UniformKind) -> 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 UniformKind
impl Eq for UniformKind
impl StructuralEq for UniformKind
impl StructuralPartialEq for UniformKind
Auto Trait Implementations
impl RefUnwindSafe for UniformKind
impl Send for UniformKind
impl Sync for UniformKind
impl Unpin for UniformKind
impl UnwindSafe for UniformKind
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