pub struct Org<'buf> { /* private fields */ }
Expand description
Org-Mode Content Exporter
This backend might seem a little unncessary, but it’s fairly useful as a sanity check for the parser.
It also carries out some modifications to the source such as prettifying tables and resolving macros
Trait Implementations§
Source§impl<'buf> Exporter<'buf> for Org<'buf>
impl<'buf> Exporter<'buf> for Org<'buf>
Source§fn export(input: &str, conf: ConfigOptions) -> Result<String, Vec<ExportError>>
fn export(input: &str, conf: ConfigOptions) -> Result<String, Vec<ExportError>>
Writes the AST generated from the input into a
String
.Source§fn export_buf<'inp, T: Write>(
input: &'inp str,
buf: &'buf mut T,
conf: ConfigOptions,
) -> Result<(), Vec<ExportError>>
fn export_buf<'inp, T: Write>( input: &'inp str, buf: &'buf mut T, conf: ConfigOptions, ) -> Result<(), Vec<ExportError>>
Writes the AST generated from the input into a buffer that implements
Write
.fn export_tree<'inp, T: Write>( parsed: &Parser<'_>, buf: &'buf mut T, conf: ConfigOptions, ) -> Result<(), Vec<ExportError>>
Auto Trait Implementations§
impl<'buf> Freeze for Org<'buf>
impl<'buf> !RefUnwindSafe for Org<'buf>
impl<'buf> !Send for Org<'buf>
impl<'buf> !Sync for Org<'buf>
impl<'buf> Unpin for Org<'buf>
impl<'buf> !UnwindSafe for Org<'buf>
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