Struct CStr
nc::c_str
pub struct CStr { /* fields omitted */ }
impl CStr
pub const fn as_ptr(&self) -> *const u8
pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr
pub fn to_bytes(&self) -> &[u8]
pub fn to_bytes_with_nul(&self) -> &[u8]
impl Debug for CStr
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Unpin for CStr
impl Send for CStr
impl Sync for CStr
impl<T> Borrow<T> for T where T: ?Sized,
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Any for T where T: 'static + ?Sized,
fn type_id(&self) -> TypeId
Gets the TypeId of self. Read more
TypeId
self