pub struct Throw { /* private fields */ }Expand description
The throw statement throws a user-defined exception.
Syntax: throw expression;
Execution of the current function will stop (the statements after throw won’t be executed), and control will be passed to the first catch block in the call stack. If no catch block exists among caller functions, the program will terminate.
More information:
Implementations§
Trait Implementations§
Source§impl Executable for Throw
impl Executable for Throw
impl StructuralPartialEq for Throw
Auto Trait Implementations§
impl !Send for Throw
impl !Sync for Throw
impl Freeze for Throw
impl RefUnwindSafe for Throw
impl Unpin for Throw
impl UnsafeUnpin for Throw
impl UnwindSafe for Throw
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