pub struct AsciiDocFormat;Expand description
AsciiDoc (asciidoc).
Trait Implementations§
Source§impl Clone for AsciiDocFormat
impl Clone for AsciiDocFormat
impl Copy for AsciiDocFormat
Source§impl Debug for AsciiDocFormat
impl Debug for AsciiDocFormat
Source§impl Default for AsciiDocFormat
impl Default for AsciiDocFormat
Source§impl DocumentFormat for AsciiDocFormat
impl DocumentFormat for AsciiDocFormat
Source§fn match_name(&self, file_name: &str) -> NameMatch
fn match_name(&self, file_name: &str) -> NameMatch
.adoc and .asciidoc are AsciiDoc; .asc and .ad are when the
content says so (.asc is also an armoured PGP file).
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 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 AsciiDocFormat
impl RefUnwindSafe for AsciiDocFormat
impl Send for AsciiDocFormat
impl Sync for AsciiDocFormat
impl Unpin for AsciiDocFormat
impl UnsafeUnpin for AsciiDocFormat
impl UnwindSafe for AsciiDocFormat
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