pub struct ExprMatch {
pub attrs: Vec<Attribute, Global>,
pub match_token: Match,
pub expr: Box<Expr, Global>,
pub brace_token: Brace,
pub arms: Vec<Arm, Global>,
}Expand description
A match expression: match n { Some(n) => {}, None => {} }.
Fields§
§attrs: Vec<Attribute, Global>§match_token: Match§expr: Box<Expr, Global>§brace_token: Brace§arms: Vec<Arm, Global>Trait Implementations§
source§impl PartialEq<ExprMatch> for ExprMatch
impl PartialEq<ExprMatch> for ExprMatch
source§impl ToTokens for ExprMatch
impl ToTokens for ExprMatch
source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere Self: Sized,
impl Eq for ExprMatch
Auto Trait Implementations§
impl RefUnwindSafe for ExprMatch
impl !Send for ExprMatch
impl !Sync for ExprMatch
impl Unpin for ExprMatch
impl UnwindSafe for ExprMatch
Blanket Implementations§
source§impl<T> AstItemExt for Twhere
T: ToTokens,
impl<T> AstItemExt for Twhere T: ToTokens,
fn respanned(&self, span: Span) -> Twhere T: Parse,
fn respanned_tokens(&self, span: Span) -> TokenStream
source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere T: Spanned + ?Sized,
source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.