Struct syn::ExprCast[][src]

pub struct ExprCast {
    pub attrs: Vec<Attribute>,
    pub expr: Box<Expr>,
    pub as_token: As,
    pub ty: Box<Type>,
}

A cast expression: foo as f64.

This type is available if Syn is built with the "derive" or "full" feature.

Fields

Trait Implementations

impl ToTokens for ExprCast
[src]

Write self to the given Tokens. Read more

Convert self directly into a Tokens object. Read more

impl Clone for ExprCast
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ExprCast> for Expr
[src]

Performs the conversion.

Auto Trait Implementations

impl !Send for ExprCast

impl !Sync for ExprCast