Trait GraphNodesKindGetterInterface

Source
pub trait GraphNodesKindGetterInterface: GraphNodesNominalInterface {
    type NodeKind: NodeKindInterface;

    // Required method
    fn node_kind(
        &self,
        node_id: <Self::NodeHandle as HasId>::Id,
    ) -> Self::NodeKind;
}
Expand description

Graph nodes of which has a kind.

Required Associated Types§

Source

type NodeKind: NodeKindInterface

Enumerate kinds of the node.

Required Methods§

Source

fn node_kind(&self, node_id: <Self::NodeHandle as HasId>::Id) -> Self::NodeKind

Get kind of the node.

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§