Struct checkasum::error::OptionError
source · pub struct OptionError { /* private fields */ }
Expand description
Raised when incorrect option is given during normal runtime
Implementations§
source§impl OptionError
impl OptionError
pub fn new(msg: String) -> OptionError
Trait Implementations§
source§impl Debug for OptionError
impl Debug for OptionError
source§impl Display for OptionError
impl Display for OptionError
source§impl Error for OptionError
impl Error for OptionError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<OptionError> for Error
impl From<OptionError> for Error
source§fn from(err: OptionError) -> Self
fn from(err: OptionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptionError
impl RefUnwindSafe for OptionError
impl Send for OptionError
impl Sync for OptionError
impl Unpin for OptionError
impl UnwindSafe for OptionError
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