pub struct GeneralSAMState<TransTable: TransitionTable, SAMRef: Borrow<GeneralSAM<TransTable>>> {
    pub sam: SAMRef,
    pub node_id: usize,
    /* private fields */
}

Fields§

§sam: SAMRef§node_id: usize

Implementations§

source§

impl<TransTable: TransitionTable<KeyType = u8>, SAMRef: Borrow<GeneralSAM<TransTable>>> GeneralSAMState<TransTable, SAMRef>

source

pub fn feed_bytes(self, seq: &str) -> Self

source§

impl<TransTable: TransitionTable<KeyType = char>, SAMRef: Borrow<GeneralSAM<TransTable>>> GeneralSAMState<TransTable, SAMRef>

source

pub fn feed_chars(self, seq: &str) -> Self

source§

impl<TransTable: TransitionTable, SAMRef: Borrow<GeneralSAM<TransTable>>> GeneralSAMState<TransTable, SAMRef>

source

pub fn new(sam: SAMRef, node_id: usize) -> Self

source

pub fn inner_as_ref( &self ) -> GeneralSAMState<TransTable, &GeneralSAM<TransTable>>

source

pub fn is_nil(&self) -> bool

source

pub fn is_root(&self) -> bool

source

pub fn is_accepting(&self) -> bool

source

pub fn get_sam_ref(&self) -> &GeneralSAM<TransTable>

source

pub fn get_node(&self) -> Option<&GeneralSAMNode<TransTable>>

source

pub fn goto_suffix_parent(&mut self)

source

pub fn goto(&mut self, t: &TransTable::KeyType)

source

pub fn feed<Seq: IntoIterator<Item = TransTable::KeyType>>( self, seq: Seq ) -> Self

source

pub fn feed_iter<Iter: Iterator<Item = TransTable::KeyType>>( self, iter: Iter ) -> Self

source

pub fn feed_ref<'s, Seq: IntoIterator<Item = &'s TransTable::KeyType>>( self, seq: Seq ) -> Self
where <TransTable as TransitionTable>::KeyType: 's,

source

pub fn feed_ref_iter<'s, Iter: Iterator<Item = &'s TransTable::KeyType>>( self, iter: Iter ) -> Self
where <TransTable as TransitionTable>::KeyType: 's,

source§

impl<TransTable: TransitionTable, SAMRef: Borrow<GeneralSAM<TransTable>> + Clone> GeneralSAMState<TransTable, SAMRef>

source

pub fn get_non_nil_trans(&self, key: &TransTable::KeyType) -> Option<Self>

source

pub fn dfs_along<TN: TrieNodeAlike<InnerType = TransTable::KeyType> + Clone, ExtraType, ErrorType, F: FnMut(TravelEvent<'_, (&Self, &TN), ErrorType, TN::InnerType>) -> Result<ErrorType, ExtraType>>( &self, trie_node: TN, callback: F ) -> Result<(), ExtraType>

source

pub fn bfs_along<TN: TrieNodeAlike<InnerType = TransTable::KeyType>, ExtraType, ErrorType, F: FnMut(TravelEvent<'_, (&Self, &TN), ErrorType, TN::InnerType>) -> Result<ErrorType, ExtraType>>( &self, trie_node: TN, callback: F ) -> Result<(), ExtraType>

Trait Implementations§

source§

impl<TransTable: TransitionTable, SAMRef: Borrow<GeneralSAM<TransTable>> + Clone> Clone for GeneralSAMState<TransTable, SAMRef>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<TransTable: Debug + TransitionTable, SAMRef: Debug + Borrow<GeneralSAM<TransTable>>> Debug for GeneralSAMState<TransTable, SAMRef>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<TransTable, SAMRef> RefUnwindSafe for GeneralSAMState<TransTable, SAMRef>
where SAMRef: RefUnwindSafe, TransTable: RefUnwindSafe,

§

impl<TransTable, SAMRef> Send for GeneralSAMState<TransTable, SAMRef>
where SAMRef: Send, TransTable: Send,

§

impl<TransTable, SAMRef> Sync for GeneralSAMState<TransTable, SAMRef>
where SAMRef: Sync, TransTable: Sync,

§

impl<TransTable, SAMRef> Unpin for GeneralSAMState<TransTable, SAMRef>
where SAMRef: Unpin, TransTable: Unpin,

§

impl<TransTable, SAMRef> UnwindSafe for GeneralSAMState<TransTable, SAMRef>
where SAMRef: UnwindSafe, TransTable: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V