pub struct CheapString { /* private fields */ }Expand description
Stores an Rc
§Example
use cheap_string::CheapString;
let str = CheapString::from("Hello, world!");
println!("{}", str);Implementations§
Trait Implementations§
Source§impl Clone for CheapString
impl Clone for CheapString
Source§impl Debug for CheapString
impl Debug for CheapString
Source§impl Display for CheapString
impl Display for CheapString
Source§impl<I> Index<I> for CheapStringwhere
I: SliceIndex<str>,
impl<I> Index<I> for CheapStringwhere
I: SliceIndex<str>,
Source§impl Ord for CheapString
impl Ord for CheapString
Source§fn cmp(&self, other: &CheapString) -> Ordering
fn cmp(&self, other: &CheapString) -> 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<&str> for CheapString
impl PartialEq<&str> for CheapString
Source§impl PartialEq<String> for CheapString
impl PartialEq<String> for CheapString
Source§impl PartialEq for CheapString
impl PartialEq for CheapString
Source§impl PartialOrd for CheapString
impl PartialOrd for CheapString
impl Eq for CheapString
Auto Trait Implementations§
impl Freeze for CheapString
impl RefUnwindSafe for CheapString
impl !Send for CheapString
impl !Sync for CheapString
impl Unpin for CheapString
impl UnwindSafe for CheapString
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