[][src]Enum kul_core::Error

pub enum Error<SourcePosition, CombinerError> {
    UnbalancedEndChar(SourcePosition),
    MissingEndChar,
    FailedAlloc(AllocError),
    FailedDerefTryMut,
    FailedCombiner(CombinerError),
}

The possible errors that might be returned by parsing.

It is generic over the SourcePosition and CombinerError type parameters to enable different applications to customize what they use for these general aspects.

Variants

UnbalancedEndChar(SourcePosition)

Close-bracket without matching open-bracket

MissingEndChar

End-of-stream reached inside nest form

FailedAlloc(AllocError)

Datum allocator error

FailedDerefTryMutFailedCombiner(CombinerError)

Extensibility that custom macros/combiners may utilize to add additional error variants

Trait Implementations

impl<SourcePosition: Debug, CombinerError: Debug> Debug for Error<SourcePosition, CombinerError>[src]

impl<P1, P2, CE1, CE2> PartialEq<Error<P2, CE2>> for Error<P1, CE1> where
    P1: PartialEq<P2>,
    CE1: PartialEq<CE2>, 
[src]

This allows different concrete Error types to be compared with each other for equality if their source position types and combiner error types can be.

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<SourcePosition: Eq, CombinerError: Eq> Eq for Error<SourcePosition, CombinerError>[src]

impl<Pos, CE> From<AllocError> for Error<Pos, CE>[src]

impl<SourcePosition: Copy, CombinerError: Copy> Copy for Error<SourcePosition, CombinerError>[src]

impl<SourcePosition: Clone, CombinerError: Clone> Clone for Error<SourcePosition, CombinerError>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<SourcePosition, CombinerError> Send for Error<SourcePosition, CombinerError> where
    CombinerError: Send,
    SourcePosition: Send

impl<SourcePosition, CombinerError> Sync for Error<SourcePosition, CombinerError> where
    CombinerError: Sync,
    SourcePosition: Sync

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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<T, U> Into for T where
    U: From<T>, 
[src]

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

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

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