pub struct Org<'a> { /* private fields */ }Implementations§
Source§impl<'a> Org<'a>
impl<'a> Org<'a>
Sourcepub fn parse_string(text: String) -> Org<'static>
pub fn parse_string(text: String) -> Org<'static>
Likes parse, but accepts String.
Sourcepub fn parse_custom(text: &'a str, config: &ParseConfig) -> Org<'a>
pub fn parse_custom(text: &'a str, config: &ParseConfig) -> Org<'a>
Parses string text into Org struct with custom ParseConfig.
Sourcepub fn parse_string_custom(text: String, config: &ParseConfig) -> Org<'static>
pub fn parse_string_custom(text: String, config: &ParseConfig) -> Org<'static>
Likes parse_custom, but accepts String.
Sourcepub fn arena_mut(&mut self) -> &mut Arena<Element<'a>>
pub fn arena_mut(&mut self) -> &mut Arena<Element<'a>>
Returns a mutual reference to the underlay arena.
Sourcepub fn iter<'b>(&'b self) -> impl Iterator<Item = Event<'a, 'b>> + 'b
pub fn iter<'b>(&'b self) -> impl Iterator<Item = Event<'a, 'b>> + 'b
Returns an iterator of Events.
Sourcepub fn write_html<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
pub fn write_html<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Writes an Org struct as html format.
Sourcepub fn write_html_custom<W, H, E>(
&self,
writer: W,
handler: &mut H,
) -> Result<(), E>
pub fn write_html_custom<W, H, E>( &self, writer: W, handler: &mut H, ) -> Result<(), E>
Writes an Org struct as html format with custom HtmlHandler.
Sourcepub fn write_org<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
pub fn write_org<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Writes an Org struct as org format.
Sourcepub fn write_org_custom<W, H, E>(
&self,
writer: W,
handler: &mut H,
) -> Result<(), E>
pub fn write_org_custom<W, H, E>( &self, writer: W, handler: &mut H, ) -> Result<(), E>
Writes an Org struct as org format with custom OrgHandler.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Org<'a>
impl<'a> RefUnwindSafe for Org<'a>
impl<'a> Send for Org<'a>
impl<'a> Sync for Org<'a>
impl<'a> Unpin for Org<'a>
impl<'a> UnwindSafe for Org<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more