Struct general_sam::sam::GeneralSAM
source · pub struct GeneralSAM<T: Ord + Clone> { /* private fields */ }Implementations§
source§impl GeneralSAM<u8>
impl GeneralSAM<u8>
pub fn construct_from_bytes<S: AsRef<[u8]>>(s: S) -> Self
source§impl GeneralSAM<u32>
impl GeneralSAM<u32>
pub fn construct_from_utf32<S: AsRef<[u32]>>(s: S) -> Self
source§impl GeneralSAM<char>
impl GeneralSAM<char>
pub fn construct_from_chars<S: Iterator<Item = char>>(s: S) -> Self
source§impl<T: Ord + Clone> GeneralSAM<T>
impl<T: Ord + Clone> GeneralSAM<T>
pub fn num_of_nodes(&self) -> usize
pub fn get_root_node(&self) -> &GeneralSAMNode<T>
pub fn get_node(&self, node_id: GeneralSAMNodeID) -> Option<&GeneralSAMNode<T>>
pub fn get_root_state(&self) -> GeneralSAMState<'_, T>
pub fn get_state(&self, node_id: GeneralSAMNodeID) -> GeneralSAMState<'_, T>
sourcepub fn get_topo_and_suf_len_sorted_node_ids(&self) -> &Vec<GeneralSAMNodeID>
pub fn get_topo_and_suf_len_sorted_node_ids(&self) -> &Vec<GeneralSAMNodeID>
Returns topological sorted, maximum suffix length sorted and suffix parent depth sorted node id sequence, which is generated by topological sorting with a queue.
pub fn construct_from_trie<TN: TrieNodeAlike>(node: TN) -> Selfwhere TN::InnerType: Into<T>,
Trait Implementations§
source§impl<T: Clone + Ord + Clone> Clone for GeneralSAM<T>
impl<T: Clone + Ord + Clone> Clone for GeneralSAM<T>
source§fn clone(&self) -> GeneralSAM<T>
fn clone(&self) -> GeneralSAM<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for GeneralSAM<T>where T: RefUnwindSafe,
impl<T> Send for GeneralSAM<T>where T: Send,
impl<T> Sync for GeneralSAM<T>where T: Sync,
impl<T> Unpin for GeneralSAM<T>
impl<T> UnwindSafe for GeneralSAM<T>where T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more