Enum naga::diagnostic_filter::Severity
source · 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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§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.