pub struct MethodOrigin {
pub occurrence: OccurrenceId,
pub relationship: RelationshipSlot,
pub authored_index: usize,
}Expand description
Maps one compact live method index back to its authored declaration.
Private output writers have authored index zero. Source specialization leaves gaps in authored indices without changing compact runtime indices.
§Examples
Fields§
§occurrence: OccurrenceIdIdentifies the occurrence containing the authored relationship.
relationship: RelationshipSlotIdentifies the relationship in that occurrence’s local recipe.
Identifies the original method position before source specialization.
Trait Implementations§
Source§impl Clone for MethodOrigin
impl Clone for MethodOrigin
Source§impl Debug for MethodOrigin
impl Debug for MethodOrigin
impl Eq for MethodOrigin
Source§impl PartialEq for MethodOrigin
impl PartialEq for MethodOrigin
impl StructuralPartialEq for MethodOrigin
Auto Trait Implementations§
impl !Send for MethodOrigin
impl !Sync for MethodOrigin
impl Freeze for MethodOrigin
impl RefUnwindSafe for MethodOrigin
impl Unpin for MethodOrigin
impl UnsafeUnpin for MethodOrigin
impl UnwindSafe for MethodOrigin
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