Enum webrender_build::shader::ShaderVersion
source · 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§fn eq(&self, other: &ShaderVersion) -> bool
fn eq(&self, other: &ShaderVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ShaderVersion
impl PartialOrd for ShaderVersion
source§fn partial_cmp(&self, other: &ShaderVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &ShaderVersion) -> Option<Ordering>
1.0.0 · source§fn 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 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