Trait SuffixNode

Source
pub trait SuffixNode<T>{
Show 15 methods // Required methods fn set_parent(&mut self, parent: NodeID); fn get_parent(&self) -> Option<&NodeID>; fn get_child(&self, child: &Character<T>) -> Option<&NodeID>; fn get_child_mut(&mut self, child: &Character<T>) -> Option<&mut NodeID>; fn set_child(&mut self, edge: Character<T>, child: NodeID); fn set_edge_length(&mut self, edge_length: usize); fn get_end(&self) -> usize; fn get_edge_length(&self) -> usize; fn get_string_id(&self) -> Option<&StringID>; fn set_string_id(&mut self, string_id: StringID); fn get_start(&self) -> &usize; fn set_start(&mut self, new_start: usize); fn has_children(&self) -> bool; fn get_children(&self) -> &HashMap<Character<T>, NodeID>; fn is_leaf(&self) -> bool;
}

Required Methods§

Source

fn set_parent(&mut self, parent: NodeID)

Source

fn get_parent(&self) -> Option<&NodeID>

Source

fn get_child(&self, child: &Character<T>) -> Option<&NodeID>

Source

fn get_child_mut(&mut self, child: &Character<T>) -> Option<&mut NodeID>

Source

fn set_child(&mut self, edge: Character<T>, child: NodeID)

Source

fn set_edge_length(&mut self, edge_length: usize)

Source

fn get_end(&self) -> usize

Source

fn get_edge_length(&self) -> usize

Source

fn get_string_id(&self) -> Option<&StringID>

Source

fn set_string_id(&mut self, string_id: StringID)

Source

fn get_start(&self) -> &usize

Source

fn set_start(&mut self, new_start: usize)

Source

fn has_children(&self) -> bool

Source

fn get_children(&self) -> &HashMap<Character<T>, NodeID>

Source

fn is_leaf(&self) -> bool

Implementors§

Source§

impl<T> SuffixNode<T> for Node<T>
where T: Display + Debug + Eq + PartialEq + Hash + Clone + PartialOrd,