pub enum Str {
String(String),
ByteStr(ByteString),
Static(&'static str),
}Variants§
Implementations§
Trait Implementations§
impl Eq for Str
Source§impl From<ByteString> for Str
impl From<ByteString> for Str
Source§fn from(s: ByteString) -> Str
fn from(s: ByteString) -> Str
Converts to this type from the input type.
Source§impl Ord for Str
impl Ord for Str
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
Auto Trait Implementations§
impl !Freeze for Str
impl RefUnwindSafe for Str
impl Send for Str
impl Sync for Str
impl Unpin for Str
impl UnsafeUnpin for Str
impl UnwindSafe for Str
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