pub struct TryStatement {
pub keyword: _TryKeyword,
pub value: Box<Expr>,
pub then_clause: Option<Box<ThenClause>>,
pub fallback: Option<Box<TryFallback>>,
}Fields§
§keyword: _TryKeyword§value: Box<Expr>§then_clause: Option<Box<ThenClause>>§fallback: Option<Box<TryFallback>>Implementations§
Source§impl TryStatement
impl TryStatement
pub fn new( keyword: _TryKeyword, value: Expr, then_clause: Option<ThenClause>, fallback: Option<TryFallback>, ) -> Self
Trait Implementations§
Source§impl Debug for TryStatement
impl Debug for TryStatement
Source§impl From<TryStatement> for Component
impl From<TryStatement> for Component
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for Expr
impl From<TryStatement> for Expr
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for SequenceElement
impl From<TryStatement> for SequenceElement
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl From<TryStatement> for SyntaxNode
impl From<TryStatement> for SyntaxNode
Source§fn from(value: TryStatement) -> Self
fn from(value: TryStatement) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for TryStatement
impl PrettyTree for TryStatement
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for TryStatementwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for TryStatementwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToCells for TryStatement
impl ToCells for TryStatement
Source§fn to_cells(&self, output: &mut CellStream)
fn to_cells(&self, output: &mut CellStream)
Appends this value’s global cells to
output.Source§fn to_cell_stream(&self, source_id: SourceId) -> CellStream
fn to_cell_stream(&self, source_id: SourceId) -> CellStream
Emits this value into a fresh cell stream with the requested identity.
Source§impl ToTokens for TryStatement
impl ToTokens for TryStatement
Auto Trait Implementations§
impl Freeze for TryStatement
impl RefUnwindSafe for TryStatement
impl Send for TryStatement
impl Sync for TryStatement
impl Unpin for TryStatement
impl UnsafeUnpin 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