Struct syntax::ast::Local[src]

pub struct Local {
    pub ty: P<Ty>,
    pub pat: Gc<Pat>,
    pub init: Option<Gc<Expr>>,
    pub id: NodeId,
    pub span: Span,
    pub source: LocalSource,
}

Local represents a let statement, e.g., let <pat>:<ty> = <expr>;

Fields

ty
pat
init
id
span
source

Trait Implementations

Derived Implementations

impl<__S: Writer> Hash<__S> for Local

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Local

fn decode(__arg_0: &mut __D) -> Result<Local, __E>

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Local

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

impl Eq for Local

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Local

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

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