pub struct MirOriginTable {
pub local_origins: SecondaryMap<MirFuncId, Option<SecondaryMap<MirLocalId, Option<OriginId>>>>,
}Expand description
Side-table provenance ids keyed by MIR function/local ids.
Fields§
§local_origins: SecondaryMap<MirFuncId, Option<SecondaryMap<MirLocalId, Option<OriginId>>>>Origin ids for MIR locals that preserve source provenance.
Implementations§
Source§impl MirOriginTable
impl MirOriginTable
Sourcepub fn mapping_count(&self) -> usize
pub fn mapping_count(&self) -> usize
Return the number of local-origin mappings in this table.
Trait Implementations§
Source§impl Debug for MirOriginTable
impl Debug for MirOriginTable
Source§impl Default for MirOriginTable
impl Default for MirOriginTable
Source§fn default() -> MirOriginTable
fn default() -> MirOriginTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MirOriginTable
impl RefUnwindSafe for MirOriginTable
impl Send for MirOriginTable
impl Sync for MirOriginTable
impl Unpin for MirOriginTable
impl UnwindSafe for MirOriginTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more