[][src]Struct orgize::Org

pub struct Org<'a> { /* fields omitted */ }

Methods

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

pub fn new() -> Org<'static>[src]

Create a new empty Org struct

pub fn parse(text: &'a str) -> Org<'a>[src]

Create a new Org struct from parsing text, using the default ParseConfig

pub fn parse_with_config(content: &'a str, config: &ParseConfig) -> Org<'a>[src]

Create a new Org struct from parsing text, using a custom ParseConfig

pub fn document(&self) -> DocumentNode[src]

Return a DocumentNode

pub fn headlines<'b>(&'b self) -> impl Iterator<Item = HeadlineNode> + 'b[src]

Return an iterator of HeadlineNode

pub fn arena(&self) -> &Arena<Element<'a>>[src]

Return a refrence to underlay arena

pub fn arena_mut(&mut self) -> &mut Arena<Element<'a>>[src]

Return a mutual reference to underlay arena

pub fn new_headline(&mut self, title: Title<'a>) -> HeadlineNode[src]

Create a new headline and return it's HeadlineNode

pub fn iter<'b>(&'b self) -> impl Iterator<Item = Event<'a, 'b>> + 'b[src]

Return an iterator of Event

pub fn html<W: Write>(&self, wrtier: W) -> Result<(), Error>[src]

pub fn html_with_handler<W, H, E>(
    &self,
    writer: W,
    handler: &mut H
) -> Result<(), E> where
    W: Write,
    E: From<Error>,
    H: HtmlHandler<E>, 
[src]

pub fn org<W: Write>(&self, wrtier: W) -> Result<(), Error>[src]

pub fn org_with_handler<W, H, E>(
    &self,
    writer: W,
    handler: &mut H
) -> Result<(), E> where
    W: Write,
    E: From<Error>,
    H: OrgHandler<E>, 
[src]

impl<'_> Org<'_>[src]

pub fn validate(&self) -> Result<(), OrgizeError>[src]

Validate an Org struct.

pub fn check(&self) -> Result<(), OrgizeError>[src]

Deprecated since 0.3.1:

rename to validate

Validate an Org struct.

Trait Implementations

impl Default for Org<'static>[src]

impl<'_> Serialize for Org<'_>[src]

Auto Trait Implementations

impl<'a> Send for Org<'a>

impl<'a> Unpin for Org<'a>

impl<'a> Sync for Org<'a>

impl<'a> UnwindSafe for Org<'a>

impl<'a> RefUnwindSafe for Org<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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