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
Source§impl Trace for Throw
impl Trace for Throw
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for Throw
Auto Trait Implementations§
impl Freeze for Throw
impl RefUnwindSafe for Throw
impl !Send for Throw
impl !Sync for Throw
impl Unpin 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