Struct syn::ExprReturn [−][src]
pub struct ExprReturn { pub attrs: Vec<Attribute>, pub return_token: Return, pub expr: Option<Box<Expr>>, }
This is supported on crate feature
full
only.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]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExprReturn
[src]
impl Debug for ExprReturn
[src]This is supported on crate feature
extra-traits
only.impl Eq for ExprReturn
[src]
impl Eq for ExprReturn
[src]This is supported on crate feature
extra-traits
only.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]This is supported on crate feature
extra-traits
only.impl Parse for ExprReturn
[src]
impl Parse for ExprReturn
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<ExprReturn> for ExprReturn
[src]
impl PartialEq<ExprReturn> for ExprReturn
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for ExprReturn
[src]
impl ToTokens for ExprReturn
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExprReturn
impl RefUnwindSafe for ExprReturn
impl !Send for ExprReturn
impl !Send for ExprReturn
impl !Sync for ExprReturn
impl !Sync for ExprReturn
impl Unpin for ExprReturn
impl Unpin for ExprReturn
impl UnwindSafe for ExprReturn
impl UnwindSafe for ExprReturn