Enum arret_syntax::error::WithinContext[][src]

pub enum WithinContext {
    List(Span),
    Vector(Span),
    Set(Span),
    Map(Span),
    String(Span),
    Identifier,
    Datum,
    Dispatch,
    QuoteEscape,
    CodePoint,
}

Describes the content an error occurred within, with optional starting span

Variants

List(Span)
Vector(Span)
Set(Span)
Map(Span)
String(Span)
Identifier
Datum
Dispatch
QuoteEscape
CodePoint

Implementations

impl WithinContext[src]

pub fn description(&self) -> &'static str[src]

Returns a description of the content that was being parsed

pub fn expected_next(&self) -> Option<ExpectedNext>[src]

Returns the normally expected in this context

pub fn open_char_span(&self) -> Option<Span>[src]

Returns the character opening the sequence or string

Trait Implementations

impl Clone for WithinContext[src]

impl Debug for WithinContext[src]

impl PartialEq<WithinContext> for WithinContext[src]

impl Copy for WithinContext[src]

impl StructuralPartialEq for WithinContext[src]

Auto Trait Implementations

impl RefUnwindSafe for WithinContext

impl Send for WithinContext

impl Sync for WithinContext

impl Unpin for WithinContext

impl UnwindSafe for WithinContext

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