pub struct BoundedText(/* private fields */);Expand description
Bounded UTF-8 text for externally supplied strings.
Implementations§
Source§impl BoundedText
impl BoundedText
Trait Implementations§
Source§impl Clone for BoundedText
impl Clone for BoundedText
Source§fn clone(&self) -> BoundedText
fn clone(&self) -> BoundedText
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 BoundedText
impl Debug for BoundedText
Source§impl<'de> Deserialize<'de> for BoundedText
impl<'de> Deserialize<'de> for BoundedText
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 BoundedText
impl Display for BoundedText
Source§impl From<BoundedText> for String
impl From<BoundedText> for String
Source§fn from(value: BoundedText) -> Self
fn from(value: BoundedText) -> Self
Converts to this type from the input type.
Source§impl Hash for BoundedText
impl Hash for BoundedText
Source§impl Ord for BoundedText
impl Ord for BoundedText
Source§fn cmp(&self, other: &BoundedText) -> Ordering
fn cmp(&self, other: &BoundedText) -> 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
Source§impl PartialEq for BoundedText
impl PartialEq for BoundedText
Source§fn eq(&self, other: &BoundedText) -> bool
fn eq(&self, other: &BoundedText) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BoundedText
impl PartialOrd for BoundedText
Source§impl Serialize for BoundedText
impl Serialize for BoundedText
Source§impl TryFrom<String> for BoundedText
impl TryFrom<String> for BoundedText
impl Eq for BoundedText
impl StructuralPartialEq for BoundedText
Auto Trait Implementations§
impl Freeze for BoundedText
impl RefUnwindSafe for BoundedText
impl Send for BoundedText
impl Sync for BoundedText
impl Unpin for BoundedText
impl UnsafeUnpin for BoundedText
impl UnwindSafe for BoundedText
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