pub enum BlockStyle {
Paired {
open: String,
close: String,
},
Line {
prefix: String,
},
}Expand description
How block directives (if/else/for/…) are delimited.
Variants§
Paired
Directives are wrapped in a delimiter pair, e.g. {% if x %}.
Line
Directives occupy a whole line, introduced by a prefix, e.g. #if x.
The entire physical line (leading whitespace through the trailing newline) is consumed and produces no output.
Trait Implementations§
Source§impl Clone for BlockStyle
impl Clone for BlockStyle
Source§impl Debug for BlockStyle
impl Debug for BlockStyle
impl Eq for BlockStyle
Source§impl PartialEq for BlockStyle
impl PartialEq for BlockStyle
impl StructuralPartialEq for BlockStyle
Auto Trait Implementations§
impl Freeze for BlockStyle
impl RefUnwindSafe for BlockStyle
impl Send for BlockStyle
impl Sync for BlockStyle
impl Unpin for BlockStyle
impl UnsafeUnpin for BlockStyle
impl UnwindSafe for BlockStyle
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.