pub struct Cord(pub String);
Expand description
A newtype derived from String
Defined primarily so that a customized Patchable
implementation
can be defined for strings where it is more appropriate to replace,
rather than diff the string.
Tuple Fields§
§0: String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cord
impl<'de> Deserialize<'de> for Cord
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
impl Eq for Cord
impl StructuralPartialEq for Cord
Auto Trait Implementations§
impl Freeze for Cord
impl RefUnwindSafe for Cord
impl Send for Cord
impl Sync for Cord
impl Unpin for Cord
impl UnwindSafe for Cord
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