pub enum MarkdownTemplate {
Spec,
Index,
Command,
Argument,
Flag,
Config,
}Expand description
One of the templates used to generate Markdown documentation.
A renderer starts with a complete built-in template set. Replacing one member keeps the
others available, including through Tera’s {% include %} directive. This lets an adopter
change the document shell or the presentation of one kind of item without copying the whole
theme.
Variants§
Spec
A single-file document containing the root and every subcommand.
Index
The landing page generated in multi-file mode.
Command
A command and its arguments, flags, outputs, exits, and examples.
Argument
The details beneath one positional argument.
Flag
The details beneath one flag.
Config
The configuration reference appended to a spec or written in multi-file mode.
Trait Implementations§
Source§impl Clone for MarkdownTemplate
impl Clone for MarkdownTemplate
Source§fn clone(&self) -> MarkdownTemplate
fn clone(&self) -> MarkdownTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MarkdownTemplate
Source§impl Debug for MarkdownTemplate
impl Debug for MarkdownTemplate
impl Eq for MarkdownTemplate
Source§impl PartialEq for MarkdownTemplate
impl PartialEq for MarkdownTemplate
impl StructuralPartialEq for MarkdownTemplate
Auto Trait Implementations§
impl Freeze for MarkdownTemplate
impl RefUnwindSafe for MarkdownTemplate
impl Send for MarkdownTemplate
impl Sync for MarkdownTemplate
impl Unpin for MarkdownTemplate
impl UnsafeUnpin for MarkdownTemplate
impl UnwindSafe for MarkdownTemplate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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