pub struct MarkdownRenderer<'a> { /* private fields */ }
Implementations§
Source§impl MarkdownRenderer<'_>
impl MarkdownRenderer<'_>
Source§impl MarkdownRenderer<'_>
impl MarkdownRenderer<'_>
pub fn render_cmd(&self, cmd: &SpecCommand) -> Result<String, UsageErr>
Source§impl MarkdownRenderer<'_>
impl MarkdownRenderer<'_>
Source§impl<'a> MarkdownRenderer<'a>
impl<'a> MarkdownRenderer<'a>
pub fn new(spec: &'a Spec) -> Self
pub fn with_header_level(self, header_level: usize) -> Self
pub fn with_multi(self, index: bool) -> Self
pub fn with_url_prefix<S: Into<String>>(self, url_prefix: S) -> Self
pub fn with_html_encode(self, html_encode: bool) -> Self
Source§impl MarkdownRenderer<'_>
impl MarkdownRenderer<'_>
pub fn render_spec(&self) -> Result<String, UsageErr>
pub fn render_index(&self) -> Result<String, UsageErr>
Trait Implementations§
Source§impl<'a> Clone for MarkdownRenderer<'a>
impl<'a> Clone for MarkdownRenderer<'a>
Source§fn clone(&self) -> MarkdownRenderer<'a>
fn clone(&self) -> MarkdownRenderer<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for MarkdownRenderer<'a>
impl<'a> RefUnwindSafe for MarkdownRenderer<'a>
impl<'a> Send for MarkdownRenderer<'a>
impl<'a> Sync for MarkdownRenderer<'a>
impl<'a> Unpin for MarkdownRenderer<'a>
impl<'a> UnwindSafe for MarkdownRenderer<'a>
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more