Enum GetNextResult

Source
pub enum GetNextResult<T, FA: FiniteAutomata<T>> {
    Result {
        result: T,
        ate_item: bool,
    },
    NewState(FA),
    InvalidItem(InvalidItem<FA::Item>),
}
Expand description

Where ‘T’ is the type the stateful trie returns TODO the result should be only on the first result not the second …

Variants§

§

Result

Fields

§result: T
§ate_item: bool

Whether the item was consumed by the action

§

NewState(FA)

§

InvalidItem(InvalidItem<FA::Item>)

Trait Implementations§

Source§

impl<T: Debug, FA: Debug + FiniteAutomata<T>> Debug for GetNextResult<T, FA>
where FA::Item: Debug,

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T: PartialEq, FA: PartialEq + FiniteAutomata<T>> PartialEq for GetNextResult<T, FA>
where FA::Item: PartialEq,

Source§

fn eq(&self, other: &GetNextResult<T, FA>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<T: Eq, FA: Eq + FiniteAutomata<T>> Eq for GetNextResult<T, FA>
where FA::Item: Eq,

Source§

impl<T, FA: FiniteAutomata<T>> StructuralPartialEq for GetNextResult<T, FA>

Auto Trait Implementations§

§

impl<T, FA> Freeze for GetNextResult<T, FA>
where T: Freeze, FA: Freeze, <FA as FiniteAutomata<T>>::Item: Freeze,

§

impl<T, FA> RefUnwindSafe for GetNextResult<T, FA>

§

impl<T, FA> Send for GetNextResult<T, FA>
where T: Send, FA: Send, <FA as FiniteAutomata<T>>::Item: Send + Sync,

§

impl<T, FA> Sync for GetNextResult<T, FA>
where T: Sync, FA: Sync, <FA as FiniteAutomata<T>>::Item: Sync,

§

impl<T, FA> Unpin for GetNextResult<T, FA>
where T: Unpin, FA: Unpin, <FA as FiniteAutomata<T>>::Item: Unpin,

§

impl<T, FA> UnwindSafe for GetNextResult<T, FA>

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.