Trait Node

Source
pub trait Node<const PREFIX_LEN: usize>: Sealed {
    type Key;
    type Value;

    const TYPE: NodeType;
}
Expand description

All nodes which contain a runtime tag that validates their type.

Required Associated Constants§

Source

const TYPE: NodeType

The runtime type of the node.

Required Associated Types§

Source

type Key

The key type carried by the leaf nodes

Source

type Value

The value type carried by the leaf nodes

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<K, V, const PREFIX_LEN: usize> Node<PREFIX_LEN> for InnerNode48<K, V, PREFIX_LEN>

Source§

const TYPE: NodeType = NodeType::Node48

Source§

type Key = K

Source§

type Value = V

Source§

impl<K, V, const PREFIX_LEN: usize> Node<PREFIX_LEN> for InnerNode256<K, V, PREFIX_LEN>

Source§

const TYPE: NodeType = NodeType::Node256

Source§

type Key = K

Source§

type Value = V

Source§

impl<K, V, const PREFIX_LEN: usize> Node<PREFIX_LEN> for InnerNode4<K, V, PREFIX_LEN>

Source§

const TYPE: NodeType = NodeType::Node4

Source§

type Key = K

Source§

type Value = V

Source§

impl<K, V, const PREFIX_LEN: usize> Node<PREFIX_LEN> for InnerNode16<K, V, PREFIX_LEN>

Source§

const TYPE: NodeType = NodeType::Node16

Source§

type Key = K

Source§

type Value = V

Source§

impl<const PREFIX_LEN: usize, K, V> Node<PREFIX_LEN> for LeafNode<K, V, PREFIX_LEN>

Source§

const TYPE: NodeType = NodeType::Leaf

Source§

type Key = K

Source§

type Value = V