[][src]Enum tweep::WarningType

pub enum WarningType {
    EscapedOpenSquare,
    EscapedCloseSquare,
    EscapedOpenCurly,
    EscapedCloseCurly,
    JsonError(String),
    DuplicateStoryTitle,
    DuplicateStoryData,
    MissingStoryTitle,
    MissingStoryData,
    UnclosedLink,
    WhitespaceInLink,
    DeadLink(String),
    MissingStartPassage,
    DeadStartPassage(String),
}

An enum of the types of warnings that can be produced by tweep

Variants

EscapedOpenSquare

\[ in a passage title

EscapedCloseSquare

\] in a passage title

EscapedOpenCurly

\{ in a passage title

EscapedCloseCurly

\} in a passage title

JsonError(String)

Error encountered while parsing JSON. Contains the text of the error

DuplicateStoryTitle

StoryTitle passage encountered after parsing a StoryTitle passage

DuplicateStoryData

StoryData passage encountered after parsing a StoryData passage

MissingStoryTitle

No StoryTitle passage parsed while parsing a Story

MissingStoryData

No StoryData passage parsed while parsing a Story

Encountered a link in a TwineContent passage that was unterminated

Encountered errant whitespace in a Twine link (e.g., [[Text | Link]])

Encountered a link to a passage name that does not match any parsed passage. Contains the passage name content of the dead link.

MissingStartPassage

No passage called Start found and no start passage set in StoryData

DeadStartPassage(String)

Start passage set in StoryData that cannot be found

Trait Implementations

impl Clone for WarningType[src]

impl Debug for WarningType[src]

impl Display for WarningType[src]

impl Eq for WarningType[src]

impl PartialEq<WarningType> for WarningType[src]

impl StructuralEq for WarningType[src]

impl StructuralPartialEq for WarningType[src]

Auto Trait Implementations

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