[][src]Struct nc::c_str::CString

pub struct CString { /* fields omitted */ }

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]

type Target = CStr

The resulting type after dereferencing.

impl Drop for CString[src]

impl Debug for CString[src]

Auto Trait Implementations

impl Unpin for CString

impl Send for CString

impl Sync for CString

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]