pub struct RstFormat;Expand description
reStructuredText, drawn as rich-rst draws it (crate::rst).
Trait Implementations§
impl Copy for RstFormat
Source§impl DocumentFormat for RstFormat
impl DocumentFormat for RstFormat
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 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.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.Auto Trait Implementations§
impl Freeze for RstFormat
impl RefUnwindSafe for RstFormat
impl Send for RstFormat
impl Sync for RstFormat
impl Unpin for RstFormat
impl UnsafeUnpin for RstFormat
impl UnwindSafe for RstFormat
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