kermit-ds 0.1.1

Data structures used in Kermit
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! This module defines any kinds of nodes that could be shared amongst data
//! structures.

/// The `Node` trait defines a node with an associated value.
#[allow(dead_code)]
pub trait Node {
    /// Creates a new node with the given key.
    fn new(key: usize) -> Self;

    /// Returns a reference to the key.
    fn key(&self) -> usize;
}