pub struct CanonicalString(/* private fields */);Expand description
Validated UTF-8 text bounded by the canonical per-string byte ceiling.
Implementations§
Trait Implementations§
Source§impl Clone for CanonicalString
impl Clone for CanonicalString
Source§fn clone(&self) -> CanonicalString
fn clone(&self) -> CanonicalString
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 CanonicalString
impl Debug for CanonicalString
Source§impl<'de> Deserialize<'de> for CanonicalString
impl<'de> Deserialize<'de> for CanonicalString
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 CanonicalString
impl Display for CanonicalString
impl Eq for CanonicalString
Source§impl Hash for CanonicalString
impl Hash for CanonicalString
Source§impl Ord for CanonicalString
impl Ord for CanonicalString
Source§fn cmp(&self, other: &CanonicalString) -> Ordering
fn cmp(&self, other: &CanonicalString) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CanonicalString
impl PartialEq for CanonicalString
Source§impl PartialOrd for CanonicalString
impl PartialOrd for CanonicalString
Source§impl Serialize for CanonicalString
impl Serialize for CanonicalString
impl StructuralPartialEq for CanonicalString
Auto Trait Implementations§
impl Freeze for CanonicalString
impl RefUnwindSafe for CanonicalString
impl Send for CanonicalString
impl Sync for CanonicalString
impl Unpin for CanonicalString
impl UnsafeUnpin for CanonicalString
impl UnwindSafe for CanonicalString
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