[][src]Enum inkling::error::parse::knot::KnotErrorKind

pub enum KnotErrorKind {
    DuplicateKnotName {
        name: String,
        prev_meta_data: MetaData,
    },
    DuplicateStitchName {
        name: String,
        knot_name: String,
        meta_data: MetaData,
        prev_meta_data: MetaData,
    },
    EmptyKnot,
    EmptyStitch {
        name: Option<String>,
        meta_data: MetaData,
    },
    InvalidName {
        line: String,
        kind: KnotNameError,
        meta_data: MetaData,
    },
    LineError(LineError),
}

Error from parsing a Knot or Stitch in a story.

Variants

DuplicateKnotName

Duplicate knot name was found in a story.

Fields of DuplicateKnotName

name: String

Name of duplicate stitch.

prev_meta_data: MetaData

Information about the origin of the line of the original knot with this name.

DuplicateStitchName

Duplicate stitch name was found in a knot.

Fields of DuplicateStitchName

name: String

Name of duplicate stitch.

knot_name: String

Name of knot that contains the stitches.

meta_data: MetaData

Information about the origin of the line that caused this error.

prev_meta_data: MetaData

Information about the origin of the line of the original stitch with this name.

EmptyKnot

Knot has no content.

EmptyStitch

Stitch in knot has no content.

Fields of EmptyStitch

name: Option<String>

Name of stitch, if it is named.

meta_data: MetaData

Information about the origin of the line that caused this error.

InvalidName

Could not parse a name for knot or stitch.

Fields of InvalidName

line: String

String that could not be parsed into a name.

kind: KnotNameError

Kind of error.

meta_data: MetaData

Information about the origin of the line that caused this error.

LineError(LineError)

Could not parse a line inside a not.

Trait Implementations

impl From<LineError> for KnotErrorKind[src]

impl Display for KnotErrorKind[src]

impl Debug for KnotErrorKind[src]

impl Error for KnotErrorKind[src]

fn description(&self) -> &str1.0.0[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

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.

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

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

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