pub struct MetaNode {
pub name: Symbol,
pub parent: Option<Meta>,
pub offset: u64,
}Expand description
A node of the metadata graph, which for now is only what aliasing needs.
The tree this forms is checked by the verifier, since a cycle in it would make the aliasing query that walks it not terminate, and the place to find that out is here and not there.
Fields§
§name: SymbolWhat this node is called, which is what the printer writes and the parser reads.
parent: Option<Meta>The node one level up, with the root having none.
offset: u64The offset within the parent, for a member of a struct type.
Trait Implementations§
impl Copy for MetaNode
impl Eq for MetaNode
impl StructuralPartialEq for MetaNode
Auto Trait Implementations§
impl Freeze for MetaNode
impl RefUnwindSafe for MetaNode
impl Send for MetaNode
impl Sync for MetaNode
impl Unpin for MetaNode
impl UnsafeUnpin for MetaNode
impl UnwindSafe for MetaNode
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