Trait key_node_list::Node [−][src]
pub trait Node {
type Key;
fn prev(&self) -> Option<&Self::Key>;
fn next(&self) -> Option<&Self::Key>;
fn prev_mut<T: NodeToken>(&mut self) -> &mut Option<Self::Key>;
fn next_mut<T: NodeToken>(&mut self) -> &mut Option<Self::Key>;
}Expand description
Trait for nodes that holds its previous and next key in
KeyNodeList.
Associated Types
Required methods
Returns a reference to the previous key of the current node,
or returns None if the current node is the first node in the list.
Returns a reference to the next key of the current node,
or returns None if the current node is the last node in the list.
Returns a mutable reference to the previous key of the current node
so that KeyNodeList can update the order of
the nodes.
