pub struct CompactString(pub String);Expand description
Represents a string whose length is expressed as a variable-length integer rather than a fixed 2-byte length.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Debug for CompactString
impl Debug for CompactString
Source§impl Default for CompactString
impl Default for CompactString
Source§fn default() -> CompactString
fn default() -> CompactString
Returns the “default value” for a type. Read more
Source§impl Hash for CompactString
impl Hash for CompactString
Source§impl Ord for CompactString
impl Ord for CompactString
Source§fn cmp(&self, other: &CompactString) -> Ordering
fn cmp(&self, other: &CompactString) -> 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 CompactString
impl PartialEq for CompactString
Source§impl PartialOrd for CompactString
impl PartialOrd for CompactString
Source§impl<R> ReadType<R> for CompactStringwhere
R: Read,
impl<R> ReadType<R> for CompactStringwhere
R: Read,
Source§impl<W> WriteType<W> for CompactStringwhere
W: Write,
impl<W> WriteType<W> for CompactStringwhere
W: Write,
impl Eq for CompactString
impl StructuralPartialEq for CompactString
Auto Trait Implementations§
impl Freeze for CompactString
impl RefUnwindSafe for CompactString
impl Send for CompactString
impl Sync for CompactString
impl Unpin for CompactString
impl UnwindSafe for CompactString
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