pub struct OwnedGeneralSam<TransTable: TransitionTable> {
pub sam: GeneralSam<TransTable>,
}
Fields§
§sam: GeneralSam<TransTable>
Methods from Deref<Target = GeneralSam<TransTable>>§
pub fn num_of_nodes(&self) -> usize
pub fn get_root_node(&self) -> &GeneralSamNode<TransTable>
pub fn get_node( &self, node_id: GeneralSamNodeID, ) -> Option<&GeneralSamNode<TransTable>>
pub fn get_root_state( &self, ) -> GeneralSamState<TransTable, &GeneralSam<TransTable>>
pub fn get_state( &self, node_id: GeneralSamNodeID, ) -> GeneralSamState<TransTable, &GeneralSam<TransTable>>
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 alter_trans_table<NewTableType: TransitionTable<KeyType = TransTable::KeyType>>( &self, ) -> GeneralSam<NewTableType>
Trait Implementations§
Source§impl<TransTable: Clone + TransitionTable> Clone for OwnedGeneralSam<TransTable>
impl<TransTable: Clone + TransitionTable> Clone for OwnedGeneralSam<TransTable>
Source§fn clone(&self) -> OwnedGeneralSam<TransTable>
fn clone(&self) -> OwnedGeneralSam<TransTable>
Returns a duplicate 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 moreSource§impl<TransTable: Debug + TransitionTable> Debug for OwnedGeneralSam<TransTable>
impl<TransTable: Debug + TransitionTable> Debug for OwnedGeneralSam<TransTable>
Source§impl<TransTable: TransitionTable> Deref for OwnedGeneralSam<TransTable>
impl<TransTable: TransitionTable> Deref for OwnedGeneralSam<TransTable>
Auto Trait Implementations§
impl<TransTable> Freeze for OwnedGeneralSam<TransTable>
impl<TransTable> RefUnwindSafe for OwnedGeneralSam<TransTable>where
TransTable: RefUnwindSafe,
impl<TransTable> Send for OwnedGeneralSam<TransTable>where
TransTable: Send,
impl<TransTable> Sync for OwnedGeneralSam<TransTable>where
TransTable: Sync,
impl<TransTable> Unpin for OwnedGeneralSam<TransTable>where
TransTable: Unpin,
impl<TransTable> UnwindSafe for OwnedGeneralSam<TransTable>where
TransTable: UnwindSafe,
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