Struct ArgsOs
#[must_use = "iterators are lazy and do nothing unless consumed"]
pub struct ArgsOs { pub(in ::env) inner: Args }
An iterator over the arguments of a process, yielding an OsString value
for each argument.
This struct is created by env::args_os(). See its documentation
for more.
The first element is traditionally the path of the executable, but it can be set to arbitrary text, and might not even exist. This means this property should not be relied upon for security purposes.
Fields
inner: Args
Trait Implementations
impl !Send for ArgsOs
impl !Sync for ArgsOs
impl Debug for ArgsOs
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl DoubleEndedIterator for ArgsOs
fn next_back(&mut self) -> Option<OsString>fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
impl ExactSizeIterator for ArgsOs
fn len(&self) -> usizefn is_empty(&self) -> bool
impl Iterator for ArgsOs
type Item = OsString;fn next(&mut self) -> Option<OsString>fn next_chunk<const N: usize>(&mut self) -> Result<[OsString; N], IntoIter<OsString, N>>fn size_hint(&self) -> (usize, Option<usize>)fn count(self) -> usizefn last(self) -> Option<OsString>fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R where F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,
Auto Trait Implementations
impl Freeze for ArgsOs
impl RefUnwindSafe for ArgsOs
impl Unpin for ArgsOs
impl UnsafeUnpin for ArgsOs
impl UnwindSafe for ArgsOs
Blanket Implementations
impl<I> IntoIterator for ArgsOs
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for ArgsOs
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ArgsOs
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ArgsOs
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ArgsOs
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for ArgsOs
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for ArgsOs
impl<T, U> Into<U> for ArgsOs
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 ArgsOs
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ArgsOs
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>