intrex 0.2.0

Intrusive collections with items addressed by indices
Documentation
1
2
3
4
5
6
7
8
9
10
//! Node access callback traits

/// Read-write access for links stored in singly linked list elements.
pub trait NodesLinkMut<Index> {
    /// Get the next item of `index` in the list.
    fn node_next(&mut self, index: Index) -> Option<Index>;

    /// Set the next item of `index` in the list.
    fn set_node_next(&mut self, index: Index, next: Option<Index>);
}