pub struct UnderlineSpaces<T>(pub T);Expand description
Wrapper type that replaces spaces with underscores when serializing.
Use this to make multi-word strings look like single words so they can be used as items in a horizontal IDM sequence. Do not use with an inner type that has actual underscores in its string representation, these will be turned into spaces during the roundtrip. Do not use with strings that have newlines in them.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for UnderlineSpaces<T>
impl<T: Clone> Clone for UnderlineSpaces<T>
Source§fn clone(&self) -> UnderlineSpaces<T>
fn clone(&self) -> UnderlineSpaces<T>
Returns a duplicate 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<T: Debug> Debug for UnderlineSpaces<T>
impl<T: Debug> Debug for UnderlineSpaces<T>
Source§impl<T: Default> Default for UnderlineSpaces<T>
impl<T: Default> Default for UnderlineSpaces<T>
Source§fn default() -> UnderlineSpaces<T>
fn default() -> UnderlineSpaces<T>
Returns the “default value” for a type. Read more
Source§impl<T: Default> Deref for UnderlineSpaces<T>
impl<T: Default> Deref for UnderlineSpaces<T>
Source§impl<T: Default> DerefMut for UnderlineSpaces<T>
impl<T: Default> DerefMut for UnderlineSpaces<T>
Source§impl<'de, T: DeserializeOwned> Deserialize<'de> for UnderlineSpaces<T>
impl<'de, T: DeserializeOwned> Deserialize<'de> for UnderlineSpaces<T>
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<T: Hash> Hash for UnderlineSpaces<T>
impl<T: Hash> Hash for UnderlineSpaces<T>
Source§impl<T: Ord> Ord for UnderlineSpaces<T>
impl<T: Ord> Ord for UnderlineSpaces<T>
Source§fn cmp(&self, other: &UnderlineSpaces<T>) -> Ordering
fn cmp(&self, other: &UnderlineSpaces<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for UnderlineSpaces<T>
impl<T: PartialEq> PartialEq for UnderlineSpaces<T>
Source§impl<T: PartialOrd> PartialOrd for UnderlineSpaces<T>
impl<T: PartialOrd> PartialOrd for UnderlineSpaces<T>
Source§impl<T: Serialize> Serialize for UnderlineSpaces<T>
impl<T: Serialize> Serialize for UnderlineSpaces<T>
impl<T: Copy> Copy for UnderlineSpaces<T>
impl<T: Eq> Eq for UnderlineSpaces<T>
impl<T> StructuralPartialEq for UnderlineSpaces<T>
Auto Trait Implementations§
impl<T> Freeze for UnderlineSpaces<T>where
T: Freeze,
impl<T> RefUnwindSafe for UnderlineSpaces<T>where
T: RefUnwindSafe,
impl<T> Send for UnderlineSpaces<T>where
T: Send,
impl<T> Sync for UnderlineSpaces<T>where
T: Sync,
impl<T> Unpin for UnderlineSpaces<T>where
T: Unpin,
impl<T> UnwindSafe for UnderlineSpaces<T>where
T: UnwindSafe,
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