Struct Args

struct Args { ... }

An iterator over the arguments of a process, yielding a String value for each argument.

This struct is created by env::args(). 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 Args

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

impl DoubleEndedIterator for Args

fn next_back(self: &mut Self) -> Option<String>

impl ExactSizeIterator for Args

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

impl Freeze for Args

impl Iterator for Args

fn next(self: &mut Self) -> Option<String>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl RefUnwindSafe for Args

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

impl<I> IntoIterator for Args

fn into_iter(self: Self) -> I

impl<T> Any for Args

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Args

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

impl<T> BorrowMut for Args

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

impl<T> From for Args

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Args

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 Args

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

impl<T, U> TryInto for Args

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