pub struct ErrorKind<'a>(/* private fields */);Expand description
The kind of an Error, such as ValueError, matching the exception
type that Python raises.
Use the constants such as VALUE_ERROR and TYPE_ERROR, or
ErrorKind::new("MyError") for a custom kind.
Implementations§
Source§impl<'a> ErrorKind<'a>
impl<'a> ErrorKind<'a>
Trait Implementations§
impl<'a> Copy for ErrorKind<'a>
impl<'a> Eq for ErrorKind<'a>
impl<'a> StructuralPartialEq for ErrorKind<'a>
Auto Trait Implementations§
impl<'a> Forget for ErrorKind<'a>
impl<'a> Freeze for ErrorKind<'a>
impl<'a> Move for ErrorKind<'a>
impl<'a> RefUnwindSafe for ErrorKind<'a>
impl<'a> Send for ErrorKind<'a>
impl<'a> Sync for ErrorKind<'a>
impl<'a> Unpin for ErrorKind<'a>
impl<'a> UnsafeUnpin for ErrorKind<'a>
impl<'a> UnwindSafe for ErrorKind<'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