Struct rhai::TryCatchBlock
source · [−]pub struct TryCatchBlock {
pub try_block: StmtBlock,
pub catch_var: Ident,
pub catch_block: StmtBlock,
}
Expand description
(internals) A try-catch
block.
Exported under the internals
feature only.
Fields
try_block: StmtBlock
try
block.
catch_var: Ident
catch
variable, if any.
catch_block: StmtBlock
catch
block.
Trait Implementations
sourceimpl Clone for TryCatchBlock
impl Clone for TryCatchBlock
sourcefn clone(&self) -> TryCatchBlock
fn clone(&self) -> TryCatchBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TryCatchBlock
impl Debug for TryCatchBlock
Auto Trait Implementations
impl !RefUnwindSafe for TryCatchBlock
impl !Send for TryCatchBlock
impl !Sync for TryCatchBlock
impl Unpin for TryCatchBlock
impl !UnwindSafe for TryCatchBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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