[][src]Enum tweep::PassageContent

pub enum PassageContent {
    Normal(TwineContent),
    StoryTitle(StoryTitle),
    StoryData(Option<StoryData>),
    Script(ScriptContent),
    Stylesheet(StylesheetContent),
}

An enum of the types of content that can be inside a Passage

Variants

Normal(TwineContent)

A non-special passage that contains Twine content

StoryTitle(StoryTitle)

A passage that contains the title of the story

StoryData(Option<StoryData>)

A passage that contains the story data defined by the specification

A passage that is tagged with script and contains a script

Stylesheet(StylesheetContent)

A passage that is tagged with stylesheet and contains CSS

Trait Implementations

impl Debug for PassageContent[src]

impl From<Option<StoryData>> for PassageContent[src]

impl From<ScriptContent> for PassageContent[src]

impl From<StoryData> for PassageContent[src]

impl From<StoryTitle> for PassageContent[src]

impl From<StylesheetContent> for PassageContent[src]

impl From<TwineContent> for PassageContent[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, 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.