[][src]Enum liblet::production::ProductionError

pub enum ProductionError {
    NoLhs,
    NoRhs,
    SymbolError(SymbolError),
    FormatError(TokenizerError),
}

Variants

NoLhs

Error returned for trying to create a Production with an empty / missing left hand side. Left hand side of productions should be an ordered collection of n >= 1 symbols.

NoRhs

Error returned for trying to create a Production with an empty / missing right hand side. Right hand side of productions should be an ordered collection of n >= 1 symbols.

SymbolError(SymbolError)

Error returned for trying to create a Production with invalid symbols. To be expected when creating productions from raw string inputs.

FormatError(TokenizerError)

Error returned for trying to create a Production with a bad formatted raw input string. Properly formatted productions as strings are described in the Production documentation.

Trait Implementations

impl Clone for ProductionError[src]

impl Debug for ProductionError[src]

impl Display for ProductionError[src]

impl Eq for ProductionError[src]

impl Error for ProductionError[src]

impl From<ProductionError> for GrammarError[src]

impl From<TokenizerError> for ProductionError[src]

impl Hash for ProductionError[src]

impl PartialEq<ProductionError> for ProductionError[src]

impl StructuralEq for ProductionError[src]

impl StructuralPartialEq for ProductionError[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.