pub enum BuildMode {
Overwrite,
Append,
}
Expand description
Build mode for template amalgamation.
See BuildMode
for available modes.
Build mode for template amalgamation.
Determines how the builder handles existing template files in the output directory.
Variants§
Overwrite
Overwrite existing templates (default).
This mode will completely replace any existing amalgamated template file with the newly discovered templates.
Append
Append to existing templates, merging with what’s already there.
This mode will merge newly discovered templates with any existing amalgamated file. Note: Duplicate template names will cause an error.
Trait Implementations§
impl Copy for BuildMode
impl Eq for BuildMode
impl StructuralPartialEq for BuildMode
Auto Trait Implementations§
impl Freeze for BuildMode
impl RefUnwindSafe for BuildMode
impl Send for BuildMode
impl Sync for BuildMode
impl Unpin for BuildMode
impl UnwindSafe for BuildMode
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.