Struct rustc_mir::dataflow::move_paths::LocationMap [−][src]
pub struct LocationMap<T> { map: IndexVec<BasicBlock, Vec<T>>, }
🔬 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?
Fields
map: IndexVec<BasicBlock, Vec<T>>
🔬 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?
Location-indexed (BasicBlock for outer index, index within BB for inner index) map.
Methods
impl<T> LocationMap<T> where
T: Default + Clone,
[src]
impl<T> LocationMap<T> where
T: Default + Clone,
fn new(mir: &Mir) -> Self
[src]
fn new(mir: &Mir) -> Self
🔬 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?
Trait Implementations
impl<T: Debug> Debug for LocationMap<T>
[src]
impl<T: Debug> Debug for LocationMap<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Index<Location> for LocationMap<T>
[src]
impl<T> Index<Location> for LocationMap<T>
type Output = T
The returned type after indexing.
fn index(&self, index: Location) -> &Self::Output
[src]
fn index(&self, index: Location) -> &Self::Output
Performs the indexing (container[index]
) operation.
impl<T> IndexMut<Location> for LocationMap<T>
[src]
impl<T> IndexMut<Location> for LocationMap<T>
Auto Trait Implementations
impl<T> Send for LocationMap<T> where
T: Send,
impl<T> Send for LocationMap<T> where
T: Send,
impl<T> Sync for LocationMap<T> where
T: Sync,
impl<T> Sync for LocationMap<T> where
T: Sync,