Enum bard::book::Inline[][src]

pub enum Inline {
    Text {
        text: BStr,
    },
    Chord(Inlines<Chord>),
    Break,
    Emph(Inlines),
    Strong(Inlines),
    Link(Link),
    Image(Image),
    ChorusRef(ChorusRef),
    Transpose(Transpose),
}

Variants

Text

Fields of Text

text: BStr
Chord(Inlines<Chord>)
Break

In bard all line breaks are considered hard breaks

Emph(Inlines)
Strong(Inlines)
Image(Image)
ChorusRef(ChorusRef)
Transpose(Transpose)

Only used internally by the parser to apply transposition

Implementations

impl Inline[src]

pub fn is_break(&self) -> bool[src]

pub fn is_xpose(&self) -> bool[src]

pub fn unwrap_xpose(&self) -> Transpose[src]

Trait Implementations

impl Debug for Inline[src]

impl Serialize for Inline[src]

Auto Trait Implementations

impl RefUnwindSafe for Inline

impl Send for Inline

impl Sync for Inline

impl Unpin for Inline

impl UnwindSafe for Inline

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.