Struct syn::ExprReturn [−][src]
pub struct ExprReturn { pub attrs: Vec<Attribute>, pub return_token: Return, pub expr: Option<Box<Expr>>, }
A return
, with an optional value to be returned.
This type is available only if Syn is built with the "full"
feature.
Fields
attrs: Vec<Attribute>
return_token: Return
expr: Option<Box<Expr>>
Trait Implementations
impl Clone for ExprReturn
[src]
impl Clone for ExprReturn
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<ExprReturn> for Expr
[src]
impl From<ExprReturn> for Expr
[src]fn from(e: ExprReturn) -> Expr
[src]
impl Hash for ExprReturn
[src]
impl Hash for ExprReturn
[src]impl Parse for ExprReturn
[src]
impl Parse for ExprReturn
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprReturn> for ExprReturn
[src]
impl PartialEq<ExprReturn> for ExprReturn
[src]impl ToTokens for ExprReturn
[src]
impl ToTokens for ExprReturn
[src]