Struct valkyrie_ast::TryStatement
source · pub struct TryStatement {
pub handler: Option<ExpressionKind>,
pub body: StatementBlock,
pub span: Range<u32>,
}Expand description
try T? { ... }.catch { ... }
Fields§
§handler: Option<ExpressionKind>The try block catch handler
body: StatementBlockThe expression to run
span: Range<u32>The range of the node
Trait Implementations§
source§impl Clone for TryStatement
impl Clone for TryStatement
source§fn clone(&self) -> TryStatement
fn clone(&self) -> TryStatement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TryStatement
impl Debug for TryStatement
source§impl From<TryStatement> for ExpressionKind
impl From<TryStatement> for ExpressionKind
source§fn from(o: TryStatement) -> Self
fn from(o: TryStatement) -> Self
Converts to this type from the input type.
source§impl Hash for TryStatement
impl Hash for TryStatement
source§impl PartialEq for TryStatement
impl PartialEq for TryStatement
source§fn eq(&self, other: &TryStatement) -> bool
fn eq(&self, other: &TryStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ValkyrieNode for TryStatement
impl ValkyrieNode for TryStatement
impl Eq for TryStatement
impl StructuralPartialEq for TryStatement
Auto Trait Implementations§
impl RefUnwindSafe for TryStatement
impl Send for TryStatement
impl Sync for TryStatement
impl Unpin for TryStatement
impl UnwindSafe for TryStatement
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