pub struct MarkdownRenderer { /* private fields */ }
Implementations§
Source§impl MarkdownRenderer
impl MarkdownRenderer
pub fn render_cmd(&self, cmd: &SpecCommand) -> Result<String, UsageErr>
Source§impl MarkdownRenderer
impl MarkdownRenderer
pub fn new(spec: 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
pub fn with_replace_pre_with_code_fences( self, replace_pre_with_code_fences: 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 Clone for MarkdownRenderer
impl Clone for MarkdownRenderer
Source§fn clone(&self) -> MarkdownRenderer
fn clone(&self) -> MarkdownRenderer
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 Freeze for MarkdownRenderer
impl RefUnwindSafe for MarkdownRenderer
impl Send for MarkdownRenderer
impl Sync for MarkdownRenderer
impl Unpin for MarkdownRenderer
impl UnwindSafe for MarkdownRenderer
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