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_state(&self) -> State<'_, T>
pub fn get_state(&self, node_id: usize) -> State<'_, T>
pub fn get_topo_order(&self) -> TopoOrderStateIter<'_, T> ⓘ
pub fn construct_from_trie<TN: TrieNodeAlike>(node: TN) -> Selfwhere TN::InnerType: Into<T>,
pub fn bfs_along_from_root<TN: TrieNodeAlike<InnerType = T> + Sized, E, F: FnMut(TravelEvent<(State<'_, T>, &TN), &TN::InnerType>) -> Result<(), E>>( &self, trie_node: TN, callback: F ) -> Result<(), E>
pub fn bfs_along<TN: TrieNodeAlike<InnerType = T> + Sized, E, F: FnMut(TravelEvent<(State<'_, T>, &TN), &TN::InnerType>) -> Result<(), E>>( &self, trie_node: TN, start_node_id: usize, callback: F ) -> Result<(), E>
pub fn dfs_along_from_root<TN: TrieNodeAlike<InnerType = T> + Clone, E, F: FnMut(TravelEvent<(State<'_, T>, &TN), &TN::InnerType>) -> Result<(), E>>( &self, trie_node: TN, callback: F ) -> Result<(), E>
pub fn dfs_along<TN: TrieNodeAlike<InnerType = T> + Clone, E, F: FnMut(TravelEvent<(State<'_, T>, &TN), &TN::InnerType>) -> Result<(), E>>( &self, trie_node: TN, start_node_id: usize, callback: F ) -> Result<(), E>
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