pub struct ManFormat;Expand description
Man pages in roff: the man and mdoc macros (man).
Trait Implementations§
impl Copy for ManFormat
Source§impl DocumentFormat for ManFormat
impl DocumentFormat for ManFormat
Source§fn match_name(&self, file_name: &str) -> NameMatch
fn match_name(&self, file_name: &str) -> NameMatch
.man, .roff and .mdoc are man pages; a manual section (.1 to
.9, optionally with a suffix such as .3pm or .1ssl) is one when
the content says so (syslog.1 is a rotated log).
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 ManFormat
impl RefUnwindSafe for ManFormat
impl Send for ManFormat
impl Sync for ManFormat
impl Unpin for ManFormat
impl UnsafeUnpin for ManFormat
impl UnwindSafe for ManFormat
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