Struct rustc_passes::liveness::IrMaps[−][src]

struct IrMaps<'tcx> {
    tcx: TyCtxt<'tcx>,
    live_node_map: HirIdMap<LiveNode>,
    variable_map: HirIdMap<Variable>,
    capture_info_map: HirIdMap<Rc<Vec<CaptureInfo>>>,
    var_kinds: IndexVec<Variable, VarKind>,
    lnks: IndexVec<LiveNode, LiveNodeKind>,
}

Fields

tcx: TyCtxt<'tcx>live_node_map: HirIdMap<LiveNode>variable_map: HirIdMap<Variable>capture_info_map: HirIdMap<Rc<Vec<CaptureInfo>>>var_kinds: IndexVec<Variable, VarKind>lnks: IndexVec<LiveNode, LiveNodeKind>

Implementations

impl<'tcx> IrMaps<'tcx>[src]

fn new(tcx: TyCtxt<'tcx>) -> IrMaps<'tcx>[src]

fn add_live_node(&mut self, lnk: LiveNodeKind) -> LiveNode[src]

fn add_live_node_for_node(&mut self, hir_id: HirId, lnk: LiveNodeKind)[src]

fn add_variable(&mut self, vk: VarKind) -> Variable[src]

fn variable(&self, hir_id: HirId, span: Span) -> Variable[src]

fn variable_name(&self, var: Variable) -> Symbol[src]

fn variable_is_shorthand(&self, var: Variable) -> bool[src]

fn set_captures(&mut self, hir_id: HirId, cs: Vec<CaptureInfo>)[src]

fn add_from_pat(&mut self, pat: &Pat<'tcx>)[src]

Trait Implementations

impl<'tcx> Visitor<'tcx> for IrMaps<'tcx>[src]

type Map = Map<'tcx>

Auto Trait Implementations

impl<'tcx> !RefUnwindSafe for IrMaps<'tcx>

impl<'tcx> !Send for IrMaps<'tcx>

impl<'tcx> !Sync for IrMaps<'tcx>

impl<'tcx> Unpin for IrMaps<'tcx>

impl<'tcx> !UnwindSafe for IrMaps<'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.