Struct werror::BasicError
source · pub struct BasicError { /* private fields */ }
Expand description
baic implementation of generic BasicError
Implementations§
Trait Implementations§
source§impl Clone for BasicError
impl Clone for BasicError
source§fn clone(&self) -> BasicError
fn clone(&self) -> BasicError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BasicError
impl Debug for BasicError
source§impl Display for BasicError
impl Display for BasicError
source§impl Error for BasicError
impl Error for BasicError
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<T> From<BasicError> for Result<T, BasicError>
impl<T> From<BasicError> for Result<T, BasicError>
source§fn from(src: BasicError) -> Result<T, BasicError>
fn from(src: BasicError) -> Result<T, BasicError>
Returns the argument unchanged.
source§impl PartialEq for BasicError
impl PartialEq for BasicError
source§fn eq(&self, other: &BasicError) -> bool
fn eq(&self, other: &BasicError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BasicError
impl StructuralEq for BasicError
impl StructuralPartialEq for BasicError
Auto Trait Implementations§
impl RefUnwindSafe for BasicError
impl Send for BasicError
impl Sync for BasicError
impl Unpin for BasicError
impl UnwindSafe for BasicError
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