#[non_exhaustive]pub enum MarkerPosition {
Prefix,
Suffix,
Inline,
Replace(String),
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Prefix
Prepend the marker to the payload text.
Suffix
Append the marker to the payload text.
Inline
Wrap the marker in braces and prepend it inline.
Replace(String)
Replace {MARKER} placeholders in the payload text.
Trait Implementations§
Source§impl Clone for MarkerPosition
impl Clone for MarkerPosition
Source§fn clone(&self) -> MarkerPosition
fn clone(&self) -> MarkerPosition
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 moreSource§impl Debug for MarkerPosition
impl Debug for MarkerPosition
Source§impl<'de> Deserialize<'de> for MarkerPosition
impl<'de> Deserialize<'de> for MarkerPosition
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 Display for MarkerPosition
impl Display for MarkerPosition
impl Eq for MarkerPosition
Source§impl Hash for MarkerPosition
impl Hash for MarkerPosition
Source§impl PartialEq for MarkerPosition
impl PartialEq for MarkerPosition
Source§impl Serialize for MarkerPosition
impl Serialize for MarkerPosition
impl StructuralPartialEq for MarkerPosition
Auto Trait Implementations§
impl Freeze for MarkerPosition
impl RefUnwindSafe for MarkerPosition
impl Send for MarkerPosition
impl Sync for MarkerPosition
impl Unpin for MarkerPosition
impl UnsafeUnpin for MarkerPosition
impl UnwindSafe for MarkerPosition
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.