pub struct EncodableString(pub Cow<'static, str>);Expand description
A wrapper for Cow<'static, str> to make encoding and decoding easier.
Tuple Fields§
§0: Cow<'static, str>Trait Implementations§
Source§impl AsRef<str> for EncodableString
impl AsRef<str> for EncodableString
Source§impl Clone for EncodableString
impl Clone for EncodableString
Source§fn clone(&self) -> EncodableString
fn clone(&self) -> EncodableString
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 Debug for EncodableString
impl Debug for EncodableString
Source§impl Deref for EncodableString
impl Deref for EncodableString
Source§impl Display for EncodableString
impl Display for EncodableString
Source§impl Hash for EncodableString
impl Hash for EncodableString
Source§impl Ord for EncodableString
impl Ord for EncodableString
Source§fn cmp(&self, other: &EncodableString) -> Ordering
fn cmp(&self, other: &EncodableString) -> 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 PartialEq for EncodableString
impl PartialEq for EncodableString
Source§impl PartialOrd for EncodableString
impl PartialOrd for EncodableString
impl Eq for EncodableString
impl StructuralPartialEq for EncodableString
Auto Trait Implementations§
impl Freeze for EncodableString
impl RefUnwindSafe for EncodableString
impl Send for EncodableString
impl Sync for EncodableString
impl Unpin for EncodableString
impl UnwindSafe for EncodableString
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more