Struct bard::book::Song[][src]

pub struct Song {
    pub title: BStr,
    pub subtitles: Box<[BStr]>,
    pub blocks: Vec<Block>,
    pub notation: Notation,
}

Fields

title: BStrsubtitles: Box<[BStr]>blocks: Vec<Block>notation: Notation

Implementations

impl Song[src]

pub fn postprocess(&mut self)[src]

AST postprocessing. At the moment this entails removing empty paragraphs and verses which linger when transposition extensions are applied & removed.

Trait Implementations

impl Debug for Song[src]

impl Serialize for Song[src]

Auto Trait Implementations

impl RefUnwindSafe for Song

impl Send for Song

impl Sync for Song

impl Unpin for Song

impl UnwindSafe for Song

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.