Struct CStringIter
pub struct CStringIter<'a> { pub(in ::sys::process::unix::common::cstring_array) iter: Iter<'a, *const c_char> }
An iterator over all CStrs contained in a CStringArray.
Fields
iter: Iter<'a, *const c_char>
Trait Implementations
impl Send for CStringIter<'_>
impl Sync for CStringIter<'_>
impl<'a> Clone for CStringIter<'a>
fn clone(&self) -> CStringIter<'a>
impl<'a> ExactSizeIterator for CStringIter<'a>
fn len(&self) -> usizefn is_empty(&self) -> bool
impl<'a> Iterator for CStringIter<'a>
type Item = &'a CStr;fn next(&mut self) -> Option<&'a CStr>fn size_hint(&self) -> (usize, Option<usize>)
Auto Trait Implementations
impl<'a> Freeze for CStringIter<'a>
impl<'a> RefUnwindSafe for CStringIter<'a>
impl<'a> Unpin for CStringIter<'a>
impl<'a> UnsafeUnpin for CStringIter<'a>
impl<'a> UnwindSafe for CStringIter<'a>
Blanket Implementations
impl<I> IntoIterator for CStringIter<'a>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for CStringIter<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CStringIter<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CStringIter<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CStringIter<'a>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CStringIter<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for CStringIter<'a>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for CStringIter<'a>
impl<T> ToOwned for CStringIter<'a>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for CStringIter<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CStringIter<'a>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for CStringIter<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>