Struct ArgsOs

struct ArgsOs { ... }

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.

Implementations

impl Debug for ArgsOs

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl DoubleEndedIterator for ArgsOs

fn next_back(self: &mut Self) -> Option<OsString>
fn advance_back_by(self: &mut Self, n: usize) -> Result<(), NonZero<usize>>

impl ExactSizeIterator for ArgsOs

fn len(self: &Self) -> usize
fn is_empty(self: &Self) -> bool

impl Freeze for ArgsOs

impl Iterator for ArgsOs

fn next(self: &mut Self) -> Option<OsString>
fn next_chunk<N: usize>(self: &mut Self) -> Result<[OsString; N], array::IntoIter<OsString, N>>
fn size_hint(self: &Self) -> (usize, Option<usize>)
fn count(self: Self) -> usize
fn last(self: Self) -> Option<OsString>
fn advance_by(self: &mut Self, n: usize) -> Result<(), NonZero<usize>>
fn try_fold<B, F, R>(self: &mut Self, init: B, f: F) -> R
where
    F: FnMut(B, <Self as >::Item) -> R,
    R: Try<Output = B>
fn fold<B, F>(self: Self, init: B, f: F) -> B
where
    F: FnMut(B, <Self as >::Item) -> B

impl RefUnwindSafe for ArgsOs

impl Send for ArgsOs

impl Sync for ArgsOs

impl Unpin for ArgsOs

impl UnwindSafe for ArgsOs

impl<I> IntoIterator for ArgsOs

fn into_iter(self: Self) -> I

impl<T> Any for ArgsOs

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ArgsOs

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ArgsOs

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

impl<T> From for ArgsOs

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ArgsOs

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ArgsOs

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ArgsOs

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>