pub enum NameRef {
Symbol(String),
}Expand description
A symbolic reference to a name, resolved to a final NameId by the
link phase. Owns its string so the record is self-contained (the FG-4
appendix’s “no transient pointers, serializable in principle”).
Variants§
Symbol(String)
The referenced name, identified by its interned string. The content is the address, so this doubles as the content-addressed id the appendix calls for.
Implementations§
Trait Implementations§
impl Eq for NameRef
impl StructuralPartialEq for NameRef
Auto Trait Implementations§
impl Freeze for NameRef
impl RefUnwindSafe for NameRef
impl Send for NameRef
impl Sync for NameRef
impl Unpin for NameRef
impl UnsafeUnpin for NameRef
impl UnwindSafe for NameRef
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