pub struct ClassNode {
pub class: String,
pub parents: Vec<String>,
pub depth: u16,
}Expand description
One node of the shipped subClassOf DAG: a class, all its direct parents,
and its depth (0 = root). The hierarchy is non-exclusive — a class may
have several parents (multiple inheritance), so this is a directed acyclic
graph, not a tree. The first parent (parents are sorted) is the canonical
one used for the depth/rollup spanning tree; the rest preserve the cross-links.
Fields§
§class: String§parents: Vec<String>§depth: u16Implementations§
Trait Implementations§
impl Eq for ClassNode
impl StructuralPartialEq for ClassNode
Auto Trait Implementations§
impl Freeze for ClassNode
impl RefUnwindSafe for ClassNode
impl Send for ClassNode
impl Sync for ClassNode
impl Unpin for ClassNode
impl UnsafeUnpin for ClassNode
impl UnwindSafe for ClassNode
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