pub struct NonEmptyString(/* private fields */);
Expand description
A non-empty string.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for NonEmptyString
impl AsRef<str> for NonEmptyString
Source§impl Clone for NonEmptyString
impl Clone for NonEmptyString
Source§fn clone(&self) -> NonEmptyString
fn clone(&self) -> NonEmptyString
Returns a copy 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 NonEmptyString
impl Debug for NonEmptyString
Source§impl Default for NonEmptyString
impl Default for NonEmptyString
Source§impl<'de> Deserialize<'de> for NonEmptyString
impl<'de> Deserialize<'de> for NonEmptyString
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 NonEmptyString
impl Display for NonEmptyString
Source§impl From<&NonEmptyString> for String
impl From<&NonEmptyString> for String
Source§fn from(id: &NonEmptyString) -> Self
fn from(id: &NonEmptyString) -> Self
Converts to this type from the input type.
Source§impl From<NonEmptyString> for String
impl From<NonEmptyString> for String
Source§fn from(id: NonEmptyString) -> Self
fn from(id: NonEmptyString) -> Self
Converts to this type from the input type.
Source§impl FromStr for NonEmptyString
impl FromStr for NonEmptyString
Source§impl Hash for NonEmptyString
impl Hash for NonEmptyString
Source§impl Ord for NonEmptyString
impl Ord for NonEmptyString
Source§fn cmp(&self, other: &NonEmptyString) -> Ordering
fn cmp(&self, other: &NonEmptyString) -> 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 NonEmptyString
impl PartialEq for NonEmptyString
Source§impl PartialOrd for NonEmptyString
impl PartialOrd for NonEmptyString
Source§impl Serialize for NonEmptyString
impl Serialize for NonEmptyString
Source§impl TryFrom<&str> for NonEmptyString
impl TryFrom<&str> for NonEmptyString
Source§impl TryFrom<String> for NonEmptyString
impl TryFrom<String> for NonEmptyString
impl Eq for NonEmptyString
impl StructuralPartialEq for NonEmptyString
Auto Trait Implementations§
impl Freeze for NonEmptyString
impl RefUnwindSafe for NonEmptyString
impl Send for NonEmptyString
impl Sync for NonEmptyString
impl Unpin for NonEmptyString
impl UnwindSafe for NonEmptyString
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