pub enum ContextMode {
Book,
Annotation,
}
Expand description
An enum representing what a template intends to render.
Variants§
Book
When selected, the template is rendered to a single file containing a Book
and all
its Annotation
s.
render-context: book
[ouput-directory]
└─ [template-name].[extension]
Annotation
When selected, the template is rendered to multiple files containing a Book
and
only one its Annotation
s.
render-context: annotation
[ouput-directory]
├─ [template-name].[extension]
├─ [template-name].[extension]
├─ [template-name].[extension]
└─ ...
Trait Implementations§
Source§impl Clone for ContextMode
impl Clone for ContextMode
Source§fn clone(&self) -> ContextMode
fn clone(&self) -> ContextMode
Returns a duplicate 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 moreSource§impl Debug for ContextMode
impl Debug for ContextMode
Source§impl<'de> Deserialize<'de> for ContextMode
impl<'de> Deserialize<'de> for ContextMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ContextMode
Auto Trait Implementations§
impl Freeze for ContextMode
impl RefUnwindSafe for ContextMode
impl Send for ContextMode
impl Sync for ContextMode
impl Unpin for ContextMode
impl UnwindSafe for ContextMode
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