pub struct NullTermString(/* private fields */);Expand description
Owned version of MeasuredNullTermStr.
Create with Self::new(), then copy over data with MeasuredNullTermStr::clone_into().
Implementations§
Source§impl NullTermString
impl NullTermString
Sourcepub fn with_capacity(n: usize) -> Self
pub fn with_capacity(n: usize) -> Self
Create a new owned string with at least n bytes reserved.
Trait Implementations§
Source§impl AsNullTermStr for NullTermString
impl AsNullTermStr for NullTermString
Source§fn as_null_term_str(&self) -> &MeasuredNullTermStr
fn as_null_term_str(&self) -> &MeasuredNullTermStr
Source§impl Borrow<MeasuredNullTermStr> for NullTermString
impl Borrow<MeasuredNullTermStr> for NullTermString
Source§fn borrow(&self) -> &MeasuredNullTermStr
fn borrow(&self) -> &MeasuredNullTermStr
Immutably borrows from an owned value. Read more
Source§impl Clone for NullTermString
impl Clone for NullTermString
Source§fn clone(&self) -> NullTermString
fn clone(&self) -> NullTermString
Returns a duplicate 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 NullTermString
impl Debug for NullTermString
Source§impl Default for NullTermString
impl Default for NullTermString
Source§impl From<CString> for NullTermString
impl From<CString> for NullTermString
Source§impl From<NullTermString> for CString
impl From<NullTermString> for CString
Source§fn from(x: NullTermString) -> Self
fn from(x: NullTermString) -> Self
Converts to this type from the input type.
Source§impl Hash for NullTermString
impl Hash for NullTermString
Source§impl Ord for NullTermString
impl Ord for NullTermString
Source§fn cmp(&self, other: &NullTermString) -> Ordering
fn cmp(&self, other: &NullTermString) -> 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 NullTermString
impl PartialEq for NullTermString
Source§impl PartialOrd for NullTermString
impl PartialOrd for NullTermString
impl Eq for NullTermString
impl StructuralPartialEq for NullTermString
Auto Trait Implementations§
impl Freeze for NullTermString
impl RefUnwindSafe for NullTermString
impl Send for NullTermString
impl Sync for NullTermString
impl Unpin for NullTermString
impl UnwindSafe for NullTermString
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