[][src]Enum markings::Error

pub enum Error {
    MismatchedBraces {
        open: usize,
        close: usize,
    },
    ExpectedClosing {
        head: usize,
    },
    ExpectedOpening {
        tail: usize,
    },
    NestedTemplate {
        pos: usize,
    },
    DuplicateKeys,
    EmptyTemplate,
    OptionalKeys,
}

An error produced by this crate

Variants

MismatchedBraces

Mismatched braces were found

open count and closed count

Fields of MismatchedBraces

open: usizeclose: usize
ExpectedClosing

Expected a closing brace for open brace

head is the offset for the nearest open brace

Fields of ExpectedClosing

head: usize
ExpectedOpening

Expected a opening brace for close brace

tail is the offset for the nearest close brace

Fields of ExpectedOpening

tail: usize
NestedTemplate

Nested template was found

pos is where the template begins

Fields of NestedTemplate

pos: usize
DuplicateKeys

Duplicate keys were found, but not configured in Opts

EmptyTemplate

An empty template was found, but not configured in Opts

OptionalKeys

Optional keys were found, but not configured in Opts

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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