pub enum StandardFilterableTriggeringRule {
    DerivativeUniformity,
}Expand description
A filterable triggering rule in a DiagnosticFilter.
Variants§
DerivativeUniformity
Implementations§
Source§impl StandardFilterableTriggeringRule
 
impl StandardFilterableTriggeringRule
const DERIVATIVE_UNIFORMITY: &'static str = "derivative_uniformity"
Sourcepub fn from_wgsl_ident(s: &str) -> Option<Self>
 
pub fn from_wgsl_ident(s: &str) -> Option<Self>
Convert from a sentinel word in WGSL into its associated
StandardFilterableTriggeringRule, if possible.
Sourcepub const fn to_wgsl_ident(self) -> &'static str
 
pub const fn to_wgsl_ident(self) -> &'static str
Maps this StandardFilterableTriggeringRule into the sentinel word associated with it in
WGSL.
Source§impl StandardFilterableTriggeringRule
 
impl StandardFilterableTriggeringRule
Sourcepub(crate) const fn default_severity(self) -> Severity
 
pub(crate) const fn default_severity(self) -> Severity
The default severity associated with this triggering rule.
See https://www.w3.org/TR/WGSL/#filterable-triggering-rules for a table of default severities.
Trait Implementations§
Source§impl Clone for StandardFilterableTriggeringRule
 
impl Clone for StandardFilterableTriggeringRule
Source§fn clone(&self) -> StandardFilterableTriggeringRule
 
fn clone(&self) -> StandardFilterableTriggeringRule
Returns a duplicate 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 Ord for StandardFilterableTriggeringRule
 
impl Ord for StandardFilterableTriggeringRule
Source§fn cmp(&self, other: &StandardFilterableTriggeringRule) -> Ordering
 
fn cmp(&self, other: &StandardFilterableTriggeringRule) -> 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 StandardFilterableTriggeringRule
 
impl PartialEq for StandardFilterableTriggeringRule
Source§fn eq(&self, other: &StandardFilterableTriggeringRule) -> bool
 
fn eq(&self, other: &StandardFilterableTriggeringRule) -> bool
Tests for 
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StandardFilterableTriggeringRule
 
impl PartialOrd for StandardFilterableTriggeringRule
impl Copy for StandardFilterableTriggeringRule
impl Eq for StandardFilterableTriggeringRule
impl StructuralPartialEq for StandardFilterableTriggeringRule
Auto Trait Implementations§
impl Freeze for StandardFilterableTriggeringRule
impl RefUnwindSafe for StandardFilterableTriggeringRule
impl Send for StandardFilterableTriggeringRule
impl Sync for StandardFilterableTriggeringRule
impl Unpin for StandardFilterableTriggeringRule
impl UnwindSafe for StandardFilterableTriggeringRule
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.