pub enum Severity {
    Off,
    Info,
    Warning,
    Error,
}Expand description
A severity set on a DiagnosticFilter.
Variants§
Implementations§
Source§impl Severity
 
impl Severity
Sourcepub(crate) fn report_diag<E>(
    self,
    err: E,
    log_handler: impl FnOnce(E, Level),
) -> Result<(), E>
 
pub(crate) fn report_diag<E>( self, err: E, log_handler: impl FnOnce(E, Level), ) -> Result<(), E>
Checks whether this severity is Self::Error.
Naga does not yet support diagnostic items at lesser severities than
Severity::Error. When this is implemented, this method should be deleted, and the
severity should be used directly for reporting diagnostics.
Trait Implementations§
Source§impl Ord for Severity
 
impl Ord for Severity
Source§impl PartialOrd for Severity
 
impl PartialOrd for Severity
impl Copy for Severity
impl Eq for Severity
impl StructuralPartialEq for Severity
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnwindSafe for Severity
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.