pub struct CStrs { /* private fields */ }Expand description
A NULL-terminated array of C strings set up by the kernel at exec, such
as argv or envp. The strings live for the whole process.
Implementations§
Source§impl CStrs
impl CStrs
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn get(&self, i: usize) -> Option<&'static CStr>
Sourcepub const fn as_ptr(&self) -> *const *const c_char
pub const fn as_ptr(&self) -> *const *const c_char
The array itself, NULL-terminated, ready to pass to execve.
pub fn iter(&self) -> impl Iterator<Item = &'static CStr> + use<>
Trait Implementations§
Auto Trait Implementations§
impl !Send for CStrs
impl !Sync for CStrs
impl Freeze for CStrs
impl RefUnwindSafe for CStrs
impl Unpin for CStrs
impl UnsafeUnpin for CStrs
impl UnwindSafe for CStrs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more