Struct koto_parser::AstTry
source · pub struct AstTry {
pub try_block: AstIndex,
pub catch_arg: AstIndex,
pub catch_block: AstIndex,
pub finally_block: Option<AstIndex>,
}
Expand description
A try expression definition
Fields§
§try_block: AstIndex
The block that’s wrapped by the try
catch_arg: AstIndex
The identifier that will receive a caught error, or a wildcard
catch_block: AstIndex
The try expression’s catch block
finally_block: Option<AstIndex>
An optional finally
block
Trait Implementations§
source§impl PartialEq for AstTry
impl PartialEq for AstTry
impl Eq for AstTry
impl StructuralPartialEq for AstTry
Auto Trait Implementations§
impl Freeze for AstTry
impl RefUnwindSafe for AstTry
impl Send for AstTry
impl Sync for AstTry
impl Unpin for AstTry
impl UnwindSafe for AstTry
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