Struct syn::ExprYield [−][src]
pub struct ExprYield {
pub attrs: Vec<Attribute>,
pub yield_token: Yield,
pub expr: Option<Box<Expr>>,
}A yield expression: yield expr.
This type is available if Syn is built with the "full" feature.
Fields
attrs: Vec<Attribute>
yield_token: Yield
expr: Option<Box<Expr>>
Trait Implementations
impl Synom for ExprYield[src]
impl Synom for ExprYieldfn parse(i: Cursor) -> PResult<Self>[src]
fn parse(i: Cursor) -> PResult<Self>fn description() -> Option<&'static str>[src]
fn description() -> Option<&'static str>A short name of the type being parsed. Read more
impl ToTokens for ExprYield[src]
impl ToTokens for ExprYieldfn to_tokens(&self, tokens: &mut Tokens)[src]
fn to_tokens(&self, tokens: &mut Tokens)Write self to the given Tokens. Read more
fn into_tokens(self) -> Tokens[src]
fn into_tokens(self) -> TokensConvert self directly into a Tokens object. Read more
impl Clone for ExprYield[src]
impl Clone for ExprYieldfn clone(&self) -> ExprYield[src]
fn clone(&self) -> ExprYieldReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl From<ExprYield> for Expr[src]
impl From<ExprYield> for Expr