[][src]Struct rustfst::algorithms::lazy_fst_revamp::StateTable

pub struct StateTable<T: Hash + Eq + Clone> { /* fields omitted */ }

Implementations

impl<T: Hash + Eq + Clone> StateTable<T>[src]

pub fn new() -> Self[src]

pub fn find_id_from_ref(&self, tuple: &T) -> StateId[src]

Looks up integer ID from entry. If it doesn't exist and insert

pub fn find_id(&self, tuple: T) -> StateId[src]

pub fn find_tuple(&self, tuple_id: StateId) -> T[src]

Looks up tuple from integer ID.

Trait Implementations

impl<T: Hash + Eq + Clone> Clone for StateTable<T>[src]

impl<T: Hash + Eq + Clone + Debug> Debug for StateTable<T>[src]

impl<T: Hash + Eq + Clone> Default for StateTable<T>[src]

impl<T: Hash + Eq + Clone + PartialEq> PartialEq<StateTable<T>> for StateTable<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for StateTable<T>

impl<T> Send for StateTable<T> where
    T: Send

impl<T> Sync for StateTable<T> where
    T: Send

impl<T> Unpin for StateTable<T> where
    T: Unpin

impl<T> UnwindSafe for StateTable<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.