pub enum ShaderVersion {
Gl,
Gles,
}
Variants§
Implementations§
Source§impl ShaderVersion
impl ShaderVersion
Sourcepub fn variant_name(&self) -> &'static str
pub fn variant_name(&self) -> &'static str
Return the full variant name, for use in code generation.
Trait Implementations§
Source§impl Clone for ShaderVersion
impl Clone for ShaderVersion
Source§fn clone(&self) -> ShaderVersion
fn clone(&self) -> ShaderVersion
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ShaderVersion
impl Debug for ShaderVersion
Source§impl Hash for ShaderVersion
impl Hash for ShaderVersion
Source§impl Ord for ShaderVersion
impl Ord for ShaderVersion
Source§fn cmp(&self, other: &ShaderVersion) -> Ordering
fn cmp(&self, other: &ShaderVersion) -> Ordering
1.21.0 · Source§fn 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
Source§impl PartialEq for ShaderVersion
impl PartialEq for ShaderVersion
Source§impl PartialOrd for ShaderVersion
impl PartialOrd for ShaderVersion
impl Copy for ShaderVersion
impl Eq for ShaderVersion
impl StructuralPartialEq for ShaderVersion
Auto Trait Implementations§
impl Freeze for ShaderVersion
impl RefUnwindSafe for ShaderVersion
impl Send for ShaderVersion
impl Sync for ShaderVersion
impl Unpin for ShaderVersion
impl UnwindSafe for ShaderVersion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more