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
sourceimpl Executable for Throw
impl Executable for Throw
sourceimpl Trace for Throw
impl Trace for Throw
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for Throw
Auto Trait Implementations
impl RefUnwindSafe for Throw
impl !Send for Throw
impl !Sync for Throw
impl Unpin for Throw
impl UnwindSafe for Throw
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more