Struct rustc::mir::repr::VarDecl   
                   
                       [−]
                   
               [src]
pub struct VarDecl<'tcx> {
    pub mutability: Mutability,
    pub name: Name,
    pub ty: Ty<'tcx>,
    pub scope: ScopeId,
    pub span: Span,
}Unstable (
rustc_private)A "variable" is a binding declared by the user as part of the fn decl, a let, etc.
Fields
mutability: Mutability
                           Unstable (
rustc_private)let mut x vs let x
name: Name
                           Unstable (
rustc_private)name that user gave the variable; not that, internally, mir references variables by index
ty: Ty<'tcx>
                           Unstable (
rustc_private)type inferred for this variable (let x: ty = ...)
scope: ScopeId
                           Unstable (
rustc_private)scope in which variable was declared
span: Span
                           Unstable (
rustc_private)span where variable was declared
Trait Implementations
Derived Implementations
impl<'tcx> Decodable for VarDecl<'tcx>[src]
impl<'tcx> Encodable for VarDecl<'tcx>[src]
impl<'tcx> Debug for VarDecl<'tcx>[src]
impl<'tcx> Clone for VarDecl<'tcx>[src]
fn clone(&self) -> VarDecl<'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more