pub struct WrapConfig {
pub punctuation: WrapPunctuation,
pub inner_prefix: Option<String>,
pub inner_suffix: Option<String>,
}Expand description
Wrapping punctuation and optional inner affixes applied around a rendered value.
Combines the wrap punctuation with optional text that appears inside the wrap (between the wrap character and the rendered content).
Fields§
§punctuation: WrapPunctuationThe wrapping punctuation style.
inner_prefix: Option<String>Text inserted after the opening wrap character but before the content.
inner_suffix: Option<String>Text inserted after the content but before the closing wrap character.
Trait Implementations§
Source§impl Clone for WrapConfig
impl Clone for WrapConfig
Source§fn clone(&self) -> WrapConfig
fn clone(&self) -> WrapConfig
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 WrapConfig
impl Debug for WrapConfig
Source§impl<'de> Deserialize<'de> for WrapConfig
impl<'de> Deserialize<'de> for WrapConfig
Source§fn deserialize<D>(
deserializer: D,
) -> Result<WrapConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<WrapConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<WrapPunctuation> for WrapConfig
impl From<WrapPunctuation> for WrapConfig
Source§fn from(punctuation: WrapPunctuation) -> WrapConfig
fn from(punctuation: WrapPunctuation) -> WrapConfig
Converts to this type from the input type.
Source§impl PartialEq for WrapConfig
impl PartialEq for WrapConfig
Source§fn eq(&self, other: &WrapConfig) -> bool
fn eq(&self, other: &WrapConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WrapConfig
impl Serialize for WrapConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WrapConfig
Auto Trait Implementations§
impl Freeze for WrapConfig
impl RefUnwindSafe for WrapConfig
impl Send for WrapConfig
impl Sync for WrapConfig
impl Unpin for WrapConfig
impl UnsafeUnpin for WrapConfig
impl UnwindSafe for WrapConfig
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