pub struct OrgFormat;Expand description
Org mode (org).
Trait Implementations§
impl Copy for OrgFormat
Source§impl DocumentFormat for OrgFormat
impl DocumentFormat for OrgFormat
Source§fn extensions(&self) -> Vec<String>
fn extensions(&self) -> Vec<String>
The file extensions it claims, lowercase, without the dot.
Source§fn features(&self) -> Vec<String>
fn features(&self) -> Vec<String>
What the format supports (
"tables", "admonitions", …), for
listings and for callers that want to know before rendering.Source§fn parse(&self, source: &str) -> Option<Parsed>
fn parse(&self, source: &str) -> Option<Parsed>
Parse
source into the shared model, for formats built on it.Source§fn match_name(&self, file_name: &str) -> NameMatch
fn match_name(&self, file_name: &str) -> NameMatch
How
file_name (a base name) relates to this format. By default a
name whose extension is one of extensions is
NameMatch::Yes.Source§fn render(&self, source: &str, options: &RenderOptions) -> Rendered
fn render(&self, source: &str, options: &RenderOptions) -> Rendered
Render
source. The default draws parse’s document
with DocumentView, or the source as plain text when the format
does not parse into the model.Auto Trait Implementations§
impl Freeze for OrgFormat
impl RefUnwindSafe for OrgFormat
impl Send for OrgFormat
impl Sync for OrgFormat
impl Unpin for OrgFormat
impl UnsafeUnpin for OrgFormat
impl UnwindSafe for OrgFormat
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