[−][src]Struct libslide::parser::errors::MismatchedClosingDelimiter
All opening delimiters with closing pairs must have that closing delimiter as a correctly-ordered complement in a slide program. In particular,
(
and)
are complements (parantheses)[
and]
are complements (brackets)
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,