pub enum HeredocStripMode {
None,
Indent,
}
Expand description
The strip behaviour for the template contained in the heredoc.
Variants§
None
Do not strip leading whitespace.
Indent
Any literal string at the start of each line is analyzed to find the minimum number of leading spaces, and then that number of prefix spaces is removed from all line-leading literal strings. The final closing marker may also have an arbitrary number of spaces preceding it on its line.
Implementations§
Trait Implementations§
Source§impl Clone for HeredocStripMode
impl Clone for HeredocStripMode
Source§fn clone(&self) -> HeredocStripMode
fn clone(&self) -> HeredocStripMode
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 moreSource§impl Debug for HeredocStripMode
impl Debug for HeredocStripMode
Source§impl Default for HeredocStripMode
impl Default for HeredocStripMode
Source§fn default() -> HeredocStripMode
fn default() -> HeredocStripMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeredocStripMode
impl<'de> Deserialize<'de> for HeredocStripMode
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
Source§impl FromStr for HeredocStripMode
impl FromStr for HeredocStripMode
Source§impl<'de> IntoDeserializer<'de, Error> for HeredocStripMode
impl<'de> IntoDeserializer<'de, Error> for HeredocStripMode
Source§type Deserializer = StrDeserializer<'static, Error>
type Deserializer = StrDeserializer<'static, Error>
The type of the deserializer being converted into.
Source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
Source§impl PartialEq for HeredocStripMode
impl PartialEq for HeredocStripMode
Source§impl Serialize for HeredocStripMode
impl Serialize for HeredocStripMode
impl Copy for HeredocStripMode
impl Eq for HeredocStripMode
impl StructuralPartialEq for HeredocStripMode
Auto Trait Implementations§
impl Freeze for HeredocStripMode
impl RefUnwindSafe for HeredocStripMode
impl Send for HeredocStripMode
impl Sync for HeredocStripMode
impl Unpin for HeredocStripMode
impl UnwindSafe for HeredocStripMode
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.