pub enum Fault {
Throw(Val),
Bug(String),
}Expand description
A type error is a throw the program may catch, not a second error system.
Bug is uncatchable and means an invariant of this file was violated.
Variants§
Trait Implementations§
impl StructuralPartialEq for Fault
Auto Trait Implementations§
impl Freeze for Fault
impl !RefUnwindSafe for Fault
impl Send for Fault
impl Sync for Fault
impl Unpin for Fault
impl !UnwindSafe for Fault
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