pub struct CompactString;
Expand description
A string whose length is encoded with a u32
or varint.
Trait Implementations§
Source§impl Clone for CompactString
impl Clone for CompactString
Source§fn clone(&self) -> CompactString
fn clone(&self) -> CompactString
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 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
impl Copy 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