pub struct CellOrigin {
pub occurrence: OccurrenceId,
pub slot: CellSlot,
pub label: SourceLabel,
}Expand description
Maps one local declaration or bound formal to its live occurrence.
A live boundary cell can retain origins from several occurrences.
See TypedTemplate::instantiate.
Fields§
§occurrence: OccurrenceIdIdentifies the occurrence containing this declaration or formal.
slot: CellSlotIdentifies the local cell within that occurrence’s definition.
label: SourceLabelRetains the formal or private declaration’s exact source label.
Trait Implementations§
Source§impl Clone for CellOrigin
impl Clone for CellOrigin
Auto Trait Implementations§
impl !Send for CellOrigin
impl !Sync for CellOrigin
impl Freeze for CellOrigin
impl RefUnwindSafe for CellOrigin
impl Unpin for CellOrigin
impl UnsafeUnpin for CellOrigin
impl UnwindSafe for CellOrigin
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