[−][src]Struct compact::CString
A compact storage for a String
. So far doesn't support direct mutable operations,
Only conversion from and to String
/&str
Implementations
impl CompactString
[src]
pub fn new() -> Self
[src]
Create an empty CString
pub fn push_str(&mut self, string: &str)
[src]
Appends a given string slice onto the end of this CString
.
Trait Implementations
impl Clone for CompactString
[src]
fn clone(&self) -> CompactString
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Compact for CompactString
[src]
fn is_still_compact(&self) -> bool
[src]
fn dynamic_size_bytes(&self) -> usize
[src]
unsafe fn compact(source: *mut Self, dest: *mut Self, new_dynamic_part: *mut u8)
[src]
unsafe fn decompact(source: *const Self) -> Self
[src]
fn total_size_bytes(&self) -> usize
[src]
unsafe fn behind(ptr: *mut Self) -> *mut u8
[src]
unsafe fn compact_behind(source: *mut Self, dest: *mut Self)
[src]
impl Default for CompactString
[src]
fn default() -> CompactString
[src]
impl Deref for CompactString
[src]
impl From<String> for CompactString
[src]
fn from(string: String) -> CompactString
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompactString
impl !Send for CompactString
impl !Sync for CompactString
impl Unpin for CompactString
impl UnwindSafe for CompactString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,