Enum Level
#[non_exhaustive]
pub enum Level
An enum representing a diagnostic level.
Variants
-
Error An error.
-
Warning A warning.
-
Note A note.
-
Help A help message.
Trait Implementations
impl Clone for Level
fn clone(&self) -> Level
impl Copy for Level
impl Debug for Level
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Mark for Level
type Unmarked = Level;fn mark(unmarked: Self::Unmarked) -> Selffn unmark(self) -> Self::Unmarked
impl TrivialClone for Level
impl<'a, S> Decode<'a, '_, S> for Level
fn decode(r: &mut &'a [u8], s: &mut S) -> Self
impl<S> Encode<S> for Level
fn encode(self, w: &mut Buffer, s: &mut S)
Auto Trait Implementations
impl Freeze for Level
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnsafeUnpin for Level
impl UnwindSafe for Level
Blanket Implementations
impl<T> Any for Level
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Level
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Level
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Level
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Level
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Printable for Level
where
T: Copy + Debug,
impl<T> SizeHint for Level
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Level
impl<T> ToOwned for Level
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Level
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Level
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Level
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>