Trait rustc_mir::util::liveness::LiveVariableMap [−][src]
pub trait LiveVariableMap { type LiveVar; fn from_local(&self, local: Local) -> Option<Self::LiveVar>; fn from_live_var(&self, local: Self::LiveVar) -> Local; fn num_variables(&self) -> usize; }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Defines the mapping to/from the MIR local variables (Local
) to
the "live variable indices" we are using in a particular
computation.
Associated Types
type LiveVar
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Required Methods
fn from_local(&self, local: Local) -> Option<Self::LiveVar>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn from_live_var(&self, local: Self::LiveVar) -> Local
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn num_variables(&self) -> usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementors
impl LiveVariableMap for NllLivenessMap type LiveVar = LocalWithRegion;
impl<'a, 'tcx> LiveVariableMap for IdentityMap<'a, 'tcx> type LiveVar = Local;