pub enum ErrorKind {
Show 22 variants
MustEq {
to: String,
},
MustNotEq {
to: String,
},
MustBeOk,
MustBeErr,
MustBeSome,
MustBeNone,
MustHaveLength {
len: usize,
},
MustBeEmpty,
MustBeInRange {
range: String,
},
MustNotBeInRange {
range: String,
},
MustBeLowercase,
MustBeUppercase,
MustBeAscii,
MustBeEqAsciiIgnoreCase {
to: String,
},
MustBeLessThan {
other: String,
},
MustBeLessThanOrEqual {
other: String,
},
MustBeGreaterThan {
other: String,
},
MustBeGreaterThanOrEqual {
other: String,
},
MustBeNan,
MustNotBeNan,
Msg(String),
Error(Box<dyn Error>),
}Expand description
Common prefix: (so do not incude it in separate message)
{} must
Variants§
MustEq
MustNotEq
MustBeOk
MustBeErr
MustBeSome
MustBeNone
MustHaveLength
MustBeEmpty
MustBeInRange
MustNotBeInRange
MustBeLowercase
MustBeUppercase
MustBeAscii
MustBeEqAsciiIgnoreCase
MustBeLessThan
MustBeLessThanOrEqual
MustBeGreaterThan
MustBeGreaterThanOrEqual
MustBeNan
MustNotBeNan
Msg(String)
Error(Box<dyn Error>)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl !Send for ErrorKind
impl !Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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