[][src]Struct branchy::Error

pub struct Error<Nt, T> where
    Nt: NonterminalValue,
    T: TerminalValue
{ pub state: Vec<Symbol<Nt, T>>, pub kind: ErrorKind<Nt>, }

Used as error variant for Result.

The reason for the error can be determined via the kind field.

Fields

state: Vec<Symbol<Nt, T>>kind: ErrorKind<Nt>

Methods

impl<Nt, T> Error<Nt, T> where
    Nt: NonterminalValue,
    T: TerminalValue
[src]

pub fn nonterm_expansion_failed(
    state: Vec<Symbol<Nt, T>>,
    expanded_nonterm_value: Nt
) -> Self
[src]

pub fn max_iterations_reached(
    state: Vec<Symbol<Nt, T>>,
    iterations: usize
) -> Self
[src]

Trait Implementations

impl<Nt, T> Debug for Error<Nt, T> where
    Nt: NonterminalValue,
    T: TerminalValue
[src]

impl<Nt, T> Display for Error<Nt, T> where
    Nt: NonterminalValue,
    T: TerminalValue
[src]

impl<Nt, T> Error for Error<Nt, T> where
    Nt: NonterminalValue,
    T: TerminalValue
[src]

Auto Trait Implementations

impl<Nt, T> RefUnwindSafe for Error<Nt, T> where
    Nt: RefUnwindSafe,
    T: RefUnwindSafe

impl<Nt, T> Send for Error<Nt, T> where
    Nt: Send,
    T: Send

impl<Nt, T> Sync for Error<Nt, T> where
    Nt: Sync,
    T: Sync

impl<Nt, T> Unpin for Error<Nt, T> where
    Nt: Unpin,
    T: Unpin

impl<Nt, T> UnwindSafe for Error<Nt, T> where
    Nt: UnwindSafe,
    T: UnwindSafe

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> ToString for T where
    T: Display + ?Sized
[src]

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.

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