pub struct Try { /* private fields */ }
Expand description
The try...catch
statement marks a block of statements to try and specifies a response
should an exception be thrown.
The try
statement consists of a try
-block, which contains one or more statements. {}
must always be used, even for single statements. At least one catch
-block, or a
finally
-block, must be present.
More information:
Implementations§
Trait Implementations§
Source§impl Executable for Try
impl Executable for Try
Source§impl Trace for Try
impl Trace for Try
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
impl StructuralPartialEq for Try
Auto Trait Implementations§
impl Freeze for Try
impl RefUnwindSafe for Try
impl !Send for Try
impl !Sync for Try
impl Unpin for Try
impl UnwindSafe for Try
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