pub struct ShortString(/* private fields */);Expand description
A String (deprecated)
Implementations§
Source§impl<'a> ShortString
impl<'a> ShortString
Sourcepub fn split_whitespace(&'a self) -> SplitWhitespace<'a>
pub fn split_whitespace(&'a self) -> SplitWhitespace<'a>
Splits a string slice by whitespace.
Trait Implementations§
Source§impl Borrow<str> for ShortString
impl Borrow<str> for ShortString
Source§impl Clone for ShortString
impl Clone for ShortString
Source§fn clone(&self) -> ShortString
fn clone(&self) -> ShortString
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 ShortString
impl Debug for ShortString
Source§impl Default for ShortString
impl Default for ShortString
Source§fn default() -> ShortString
fn default() -> ShortString
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShortString
impl<'de> Deserialize<'de> for ShortString
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortString, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShortString, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ShortString
impl Display for ShortString
Source§impl From<&str> for ShortString
impl From<&str> for ShortString
Source§fn from(s: &str) -> ShortString
fn from(s: &str) -> ShortString
Converts to this type from the input type.
Source§impl From<ShortString> for AMQPValue
impl From<ShortString> for AMQPValue
Source§fn from(v: ShortString) -> AMQPValue
fn from(v: ShortString) -> AMQPValue
Converts to this type from the input type.
Source§impl From<String> for ShortString
impl From<String> for ShortString
Source§fn from(s: String) -> ShortString
fn from(s: String) -> ShortString
Converts to this type from the input type.
Source§impl Hash for ShortString
impl Hash for ShortString
Source§impl Ord for ShortString
impl Ord for ShortString
Source§fn cmp(&self, other: &ShortString) -> Ordering
fn cmp(&self, other: &ShortString) -> 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 ShortString
impl PartialEq for ShortString
Source§fn eq(&self, other: &ShortString) -> bool
fn eq(&self, other: &ShortString) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ShortString
impl PartialOrd for ShortString
Source§impl Serialize for ShortString
impl Serialize for ShortString
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for ShortString
impl StructuralPartialEq for ShortString
Auto Trait Implementations§
impl Freeze for ShortString
impl RefUnwindSafe for ShortString
impl Send for ShortString
impl Sync for ShortString
impl Unpin for ShortString
impl UnsafeUnpin for ShortString
impl UnwindSafe for ShortString
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