[−][src]Struct nc::c_str::CString
Methods
impl CString
[src]
pub fn new<T: Into<Vec<u8>>>(t: T) -> CString
[src]
pub fn with_capacity(cap: usize) -> CString
[src]
pub fn into_bytes_with_nul(self) -> Vec<u8>
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes_with_nul(&self) -> &[u8]
[src]
pub fn as_c_str(&self) -> &CStr
[src]
pub fn into_boxed_c_str(self) -> Box<CStr>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn strim_into_bytes(self) -> Vec<u8>
[src]
pub fn into_bytes(self) -> Vec<u8>
[src]
Methods from Deref<Target = CStr>
pub const fn as_ptr(&self) -> *const u8
[src]
pub fn to_bytes(&self) -> &[u8]
[src]
pub fn to_bytes_with_nul(&self) -> &[u8]
[src]
Trait Implementations
impl From<CString> for Vec<u8>
[src]
impl Deref for CString
[src]
impl Drop for CString
[src]
impl Debug for CString
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for 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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,