Trait RootCollection

Source
pub unsafe trait RootCollection<'id, NodeType: GraphNode>: Default {
    // Required method
    fn traverse(this: &Self, cleanup: &mut CleanupState<'_, NodeType>);
}

Required Methods§

Source

fn traverse(this: &Self, cleanup: &mut CleanupState<'_, NodeType>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'id, K, NodeType> RootCollection<'id, NodeType> for RootHashMap<'id, K, NodeType>
where NodeType: GraphNode, K: Hash + Eq,

Source§

impl<'id, NodeType> RootCollection<'id, NodeType> for RootNamedSet<'id, NodeType>
where NodeType: GraphNode,

Source§

impl<'id, NodeType> RootCollection<'id, NodeType> for RootOption<'id, NodeType>
where NodeType: GraphNode,

Source§

impl<'id, NodeType> RootCollection<'id, NodeType> for RootVec<'id, NodeType>
where NodeType: GraphNode,