pub struct CompactString { /* private fields */ }Implementations§
Source§impl CompactString
impl CompactString
pub fn new() -> Self
pub fn from_str(s: &str) -> Self
pub fn from_static(s: &'static str) -> Self
pub fn as_str(&self) -> &str
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn push_str(&mut self, s: &str)
pub fn clear(&mut self)
pub fn is_inline(&self) -> bool
Trait Implementations§
Source§impl Clone for CompactString
impl Clone for CompactString
Source§impl Debug for CompactString
impl Debug for CompactString
Source§impl Default for CompactString
impl Default for CompactString
Source§impl Display for CompactString
impl Display for CompactString
impl Eq for CompactString
Source§impl Hash for CompactString
impl Hash for CompactString
Source§impl PartialEq for CompactString
impl PartialEq for CompactString
Source§impl PartialEq<&str> for CompactString
impl PartialEq<&str> for CompactString
Auto Trait Implementations§
impl Forget for CompactString
impl Freeze for CompactString
impl RefUnwindSafe for CompactString
impl Send for CompactString
impl Sync for CompactString
impl Unpin for CompactString
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.