[−][src]Struct orgize::Org
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]
&self,
writer: W,
handler: &mut H
) -> Result<(), E> where
W: Write,
E: From<Error>,
H: HtmlHandler<E>,
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]
&self,
writer: W,
handler: &mut H
) -> Result<(), E> where
W: Write,
E: From<Error>,
H: OrgHandler<E>,
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
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,