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.


Trait Implementations

impl ToTokens for ExprCast

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

impl Debug for ExprCast

Formats the value using the given formatter. Read more

impl Eq for ExprCast

impl PartialEq for ExprCast

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for ExprCast

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for ExprCast

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<ExprCast> for Expr

Performs the conversion.

Auto Trait Implementations

impl !Send for ExprCast

impl !Sync for ExprCast