[][src]Struct nc::c_str::CStr

pub struct CStr { /* fields omitted */ }

Methods

impl CStr[src]

pub const fn as_ptr(&self) -> *const u8[src]

pub unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr[src]

pub fn to_bytes(&self) -> &[u8][src]

pub fn to_bytes_with_nul(&self) -> &[u8][src]

Trait Implementations

impl Debug for CStr[src]

Auto Trait Implementations

impl Unpin for CStr

impl Send for CStr

impl Sync for CStr

Blanket Implementations

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]