[][src]Enum litorg::Tree

pub enum Tree {
    Root {
        children: Vec<Tree>,
        title: String,
        level: usize,
        properties: Vec<Property>,
        properties_open: bool,
        toc: Vec<usize>,
        id: Id,
    },
    Block {
        contents: String,
    },
    Item {
        children: Vec<Vec<Tree>>,
        indent: usize,
    },
    Src {
        indent: usize,
        contents: String,
        style: String,
        options: Vec<(String, String)>,
        id: String,
    },
}

Variants

Root

Fields of Root

children: Vec<Tree>title: Stringlevel: usizeproperties: Vec<Property>properties_open: booltoc: Vec<usize>id: Id
Block

Fields of Block

contents: String
Item

Fields of Item

children: Vec<Vec<Tree>>indent: usize
Src

Fields of Src

indent: usizecontents: Stringstyle: Stringoptions: Vec<(String, String)>id: String

Trait Implementations

impl Clone for Tree[src]

impl Debug for Tree[src]

Auto Trait Implementations

impl RefUnwindSafe for Tree

impl Send for Tree

impl Sync for Tree

impl Unpin for Tree

impl UnwindSafe for Tree

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.