pub enum Panic {}Expand description
An error type that does not occupy any space, panicking on creation instead.
Because panicking occurs immediately upon creation, this error type will not print any additional trace information.
Trait Implementations§
Source§impl Error for Panic
impl Error for Panic
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl Ord for Panic
impl Ord for Panic
Source§impl PartialOrd for Panic
impl PartialOrd for Panic
impl Copy for Panic
impl Eq for Panic
impl Never for Panic
impl StructuralPartialEq for Panic
Auto Trait Implementations§
impl Freeze for Panic
impl RefUnwindSafe for Panic
impl Send for Panic
impl Sync for Panic
impl Unpin for Panic
impl UnwindSafe for Panic
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