Struct syntex_syntax::ast::Expr [] [src]

pub struct Expr {
    pub id: NodeId,
    pub node: Expr_,
    pub span: Span,
    pub attrs: ThinAttributes,
}

An expression

Fields

id
node
span
attrs

Methods

impl Expr

fn attrs(&self) -> &[Attribute]

Trait Implementations

impl Debug for Expr

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Hash for Expr

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Expr

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Expr, __D::Error>

impl Encodable for Expr

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for Expr

impl PartialEq for Expr

fn eq(&self, __arg_0: &Expr) -> bool

fn ne(&self, __arg_0: &Expr) -> bool

impl Clone for Expr

fn clone(&self) -> Expr

fn clone_from(&mut self, source: &Self)