[][src]Enum orgize::Element

pub enum Element<'a> {
    Paragraph {
        cont_end: usize,
        end: usize,
    },
    Keyword {
        key: Key<'a>,
        value: &'a str,
    },
    Call {
        value: &'a str,
    },
    FnDef {
        label: &'a str,
        cont: &'a str,
    },
    CtrBlock {
        args: Option<&'a str>,
        cont_end: usize,
        end: usize,
    },
    QteBlock {
        args: Option<&'a str>,
        cont_end: usize,
        end: usize,
    },
    SplBlock {
        args: Option<&'a str>,
        name: &'a str,
        cont_end: usize,
        end: usize,
    },
    CommentBlock {
        args: Option<&'a str>,
        cont: &'a str,
    },
    ExampleBlock {
        args: Option<&'a str>,
        cont: &'a str,
    },
    ExportBlock {
        args: Option<&'a str>,
        cont: &'a str,
    },
    SrcBlock {
        args: Option<&'a str>,
        cont: &'a str,
    },
    VerseBlock {
        args: Option<&'a str>,
        cont: &'a str,
    },
    DynBlock {
        args: Option<&'a str>,
        name: &'a str,
        cont_end: usize,
        end: usize,
    },
    Rule,
    Comment(&'a str),
    FixedWidth(&'a str),
    List {
        ident: usize,
        ordered: bool,
    },
}

Variants

Paragraph

Fields of Paragraph

cont_end: usizeend: usize
Keyword

Fields of Keyword

key: Key<'a>value: &'a str
Call

Fields of Call

value: &'a str
FnDef

Fields of FnDef

label: &'a strcont: &'a str
CtrBlock

Fields of CtrBlock

args: Option<&'a str>cont_end: usizeend: usize
QteBlock

Fields of QteBlock

args: Option<&'a str>cont_end: usizeend: usize
SplBlock

Fields of SplBlock

args: Option<&'a str>name: &'a strcont_end: usizeend: usize
CommentBlock

Fields of CommentBlock

args: Option<&'a str>cont: &'a str
ExampleBlock

Fields of ExampleBlock

args: Option<&'a str>cont: &'a str
ExportBlock

Fields of ExportBlock

args: Option<&'a str>cont: &'a str
SrcBlock

Fields of SrcBlock

args: Option<&'a str>cont: &'a str
VerseBlock

Fields of VerseBlock

args: Option<&'a str>cont: &'a str
DynBlock

Fields of DynBlock

args: Option<&'a str>name: &'a strcont_end: usizeend: usize
RuleComment(&'a str)FixedWidth(&'a str)List

Fields of List

ident: usizeordered: bool

Methods

impl<'a> Element<'a>[src]

pub fn next_2(
    src: &'a str
) -> (Option<Element<'a>>, usize, Option<(Element<'a>, usize)>)
[src]

Trait Implementations

impl<'a> Debug for Element<'a>[src]

Auto Trait Implementations

impl<'a> Send for Element<'a>

impl<'a> Sync for Element<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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