pub struct HirOriginTable {
pub expr_origins: SecondaryMap<ExprId, Option<OriginId>>,
}Expand description
Side-table provenance ids keyed by HIR expression ids.
Fields§
§expr_origins: SecondaryMap<ExprId, Option<OriginId>>Origin ids for HIR expressions that preserve source provenance.
Implementations§
Source§impl HirOriginTable
impl HirOriginTable
Sourcepub fn mapping_count(&self) -> usize
pub fn mapping_count(&self) -> usize
Return the number of expression-origin mappings in this table.
Trait Implementations§
Source§impl Debug for HirOriginTable
impl Debug for HirOriginTable
Source§impl Default for HirOriginTable
impl Default for HirOriginTable
Source§fn default() -> HirOriginTable
fn default() -> HirOriginTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HirOriginTable
impl RefUnwindSafe for HirOriginTable
impl Send for HirOriginTable
impl Sync for HirOriginTable
impl Unpin for HirOriginTable
impl UnwindSafe for HirOriginTable
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