pub struct MarkdownWriter<W: Write> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
Source§impl<W: Write> DocumentationWriter for MarkdownWriter<W>
impl<W: Write> DocumentationWriter for MarkdownWriter<W>
Source§fn set_subtitle(&mut self, subtitle: Cow<'static, str>)
fn set_subtitle(&mut self, subtitle: Cow<'static, str>)
Set the subtitle of this document. Read more
Source§fn set_license(&mut self, license: Cow<'static, str>)
fn set_license(&mut self, license: Cow<'static, str>)
Set the license of this man page and/or the code it covers. Read more
Source§fn start_description(&mut self) -> Result<(), Self::Error>
fn start_description(&mut self) -> Result<(), Self::Error>
Start the description section. Read more
Source§fn start_section(&mut self, name: &str) -> Result<(), Self::Error>
fn start_section(&mut self, name: &str) -> Result<(), Self::Error>
Start a custom section. Read more
Source§fn emphasis(&mut self, text: &str) -> Result<(), Self::Error>
fn emphasis(&mut self, text: &str) -> Result<(), Self::Error>
Emit emphasized (italicized) text. Read more
Source§fn strong(&mut self, text: &str) -> Result<(), Self::Error>
fn strong(&mut self, text: &str) -> Result<(), Self::Error>
Emit strong (bold) text. Read more
Source§fn link(&mut self, text: &str, to: &str) -> Result<(), Self::Error>
fn link(&mut self, text: &str, to: &str) -> Result<(), Self::Error>
Emit a hyperlink. Read more
Source§fn option(&mut self, name: &str, default: &str) -> Result<(), Self::Error>
fn option(&mut self, name: &str, default: &str) -> Result<(), Self::Error>
Emit an option. Read more
Source§fn start_environment(&mut self) -> Result<(), Self::Error>
fn start_environment(&mut self) -> Result<(), Self::Error>
Start the environment section. Read more
Source§fn variable(&mut self, name: &str, default: &str) -> Result<(), Self::Error>
fn variable(&mut self, name: &str, default: &str) -> Result<(), Self::Error>
Emit an environment variable. Read more
Auto Trait Implementations§
impl<W> Freeze for MarkdownWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for MarkdownWriter<W>where
W: RefUnwindSafe,
impl<W> Send for MarkdownWriter<W>where
W: Send,
impl<W> Sync for MarkdownWriter<W>where
W: Sync,
impl<W> Unpin for MarkdownWriter<W>where
W: Unpin,
impl<W> UnwindSafe for MarkdownWriter<W>where
W: UnwindSafe,
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
Source§impl<D> MarkdownParseExt for Dwhere
D: DocumentationWriter,
impl<D> MarkdownParseExt for Dwhere
D: DocumentationWriter,
Source§type Error = MarkdownParseError<<D as DocumentationWriter>::Error>
type Error = MarkdownParseError<<D as DocumentationWriter>::Error>
Available on crate feature
parse-markdown
only.This error wraps errors during markdown processing and io errors occurring during writing. Read more
Source§fn write_markdown(
&mut self,
md: &str,
) -> Result<(), <D as MarkdownParseExt>::Error>
fn write_markdown( &mut self, md: &str, ) -> Result<(), <D as MarkdownParseExt>::Error>
Available on crate feature
parse-markdown
only.Emit events corresponding to the given markdown. Read more