pub struct AliasEntry {
pub old: DefinitionId,
pub new: DefinitionId,
}Expand description
One old→new DefinitionId rename record (M-3, docs/modules-spec.md
§5): the compiler emits one of these per #@was(old_name) directive —
on a module, one entry per definition the renamed module currently
owns; on a single definition, one entry for it. Rehydration
(brink-runtime’s load_state) consults the table only on the miss
path: a saved fn token, divert value, or visit-count key that the
current program doesn’t recognize is looked up here before being
treated as genuinely gone.
Fields§
§old: DefinitionIdThe identity a save from before the rename may still carry.
new: DefinitionIdThe definition’s current identity.
Trait Implementations§
Source§impl Clone for AliasEntry
impl Clone for AliasEntry
Source§fn clone(&self) -> AliasEntry
fn clone(&self) -> AliasEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AliasEntry
Source§impl Debug for AliasEntry
impl Debug for AliasEntry
impl Eq for AliasEntry
Source§impl Ord for AliasEntry
impl Ord for AliasEntry
Source§fn cmp(&self, other: &AliasEntry) -> Ordering
fn cmp(&self, other: &AliasEntry) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AliasEntry
impl PartialEq for AliasEntry
Source§impl PartialOrd for AliasEntry
impl PartialOrd for AliasEntry
impl StructuralPartialEq for AliasEntry
Auto Trait Implementations§
impl Freeze for AliasEntry
impl RefUnwindSafe for AliasEntry
impl Send for AliasEntry
impl Sync for AliasEntry
impl Unpin for AliasEntry
impl UnsafeUnpin for AliasEntry
impl UnwindSafe for AliasEntry
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