pub struct ExprTry {
pub try_token: _Try,
pub value: Box<Expr>,
pub on_success: Option<ThenClause>,
pub fallback: Option<TryFallback>,
}Expand description
Struct generated by strutuct! for ExprTry.
Fields§
§try_token: _TryField ExprTry::try_token generated by strutuct!.
value: Box<Expr>Field ExprTry::value generated by strutuct!.
on_success: Option<ThenClause>Field ExprTry::on_success generated by strutuct!.
fallback: Option<TryFallback>Field ExprTry::fallback generated by strutuct!.
Implementations§
Trait Implementations§
Source§impl From<ExprTry> for PackedContent
impl From<ExprTry> for PackedContent
Source§impl Lex for ExprTry
impl Lex for ExprTry
Source§fn to_tokens(&self, output: &mut TokenStream)
fn to_tokens(&self, output: &mut TokenStream)
Appends this value’s token trees to
output.Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Emits this value into a fresh token stream.
Source§impl<N> Migrate<N> for ExprTrywhere
N: ExternalCstNode,
impl<N> Migrate<N> for ExprTrywhere
N: ExternalCstNode,
Source§impl PrettyTree for ExprTry
impl PrettyTree for ExprTry
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Auto Trait Implementations§
impl Freeze for ExprTry
impl RefUnwindSafe for ExprTry
impl Send for ExprTry
impl Sync for ExprTry
impl Unpin for ExprTry
impl UnsafeUnpin for ExprTry
impl UnwindSafe for ExprTry
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