pub enum Code<'a> {
Profile(&'static str),
Application(&'a str),
Malformed(&'a str),
}Expand description
A fault’s code, read by §2.10.
Variants§
Profile(&'static str)
A code of the profile’s table (CODES).
Application(&'a str)
Any other code of the form [a-z][a-z0-9_]*: an application’s.
Malformed(&'a str)
Not of that form: still an occurrence, shown verbatim.
Implementations§
Trait Implementations§
impl<'a> Copy for Code<'a>
impl<'a> Eq for Code<'a>
impl<'a> StructuralPartialEq for Code<'a>
Auto Trait Implementations§
impl<'a> Forget for Code<'a>
impl<'a> Freeze for Code<'a>
impl<'a> Move for Code<'a>
impl<'a> RefUnwindSafe for Code<'a>
impl<'a> Send for Code<'a>
impl<'a> Sync for Code<'a>
impl<'a> Unpin for Code<'a>
impl<'a> UnsafeUnpin for Code<'a>
impl<'a> UnwindSafe for Code<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more