Local in rustc_ast::ast - Rust (original) (raw)
pub struct Local {
pub id: NodeId,
pub super_: Option<Span>,
pub pat: Box<Pat>,
pub ty: Option<Box<Ty>>,
pub kind: LocalKind,
pub span: Span,
pub colon_sp: Option<Span>,
pub attrs: AttrVec,
pub tokens: Option<LazyAttrTokenStream>,
}Expand description
Local represents a let statement, e.g., let <pat>:<ty> = <expr>;.
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes