Struct CStrArray

Source
pub struct CStrArray { /* private fields */ }

Implementations§

Source§

impl CStrArray

Source

pub unsafe fn from_ptr<'a>(ptr: *const *const c_char) -> &'a CStrArray

Turns a pointer to a NULL-terminated array of NUL-terminated strings into a CStrArray.

§Safety

The pointer must point to a NULL-terminated array of NUL-terminated strings.

Source

pub const fn as_ptr(&self) -> *const *const c_char

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more