[][src]Struct libslide::parser::errors::MismatchedClosingDelimiter

pub(crate) struct MismatchedClosingDelimiter;

All opening delimiters with closing pairs must have that closing delimiter as a correctly-ordered complement in a slide program. In particular,

The most obvious case for a mismatch is when an incorrect complement is used, for example in (1+2] or [1+2).

A complement to this is that nesting order must be obeyed. That is, ([1 + 2]) is valid but ([1 + 2)] is not.

Finally, a more subtle case may be when one set of delimiters is not properly closed, as in the case

([1 + 2)
       ^- expected closing `]`

Trait Implementations

impl DiagnosticRecord for MismatchedClosingDelimiter[src]

Auto Trait Implementations

impl RefUnwindSafe for MismatchedClosingDelimiter

impl Send for MismatchedClosingDelimiter

impl Sync for MismatchedClosingDelimiter

impl Unpin for MismatchedClosingDelimiter

impl UnwindSafe for MismatchedClosingDelimiter

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