Struct VarsOs

pub struct VarsOs { pub(in ::env) inner: Env }

An iterator over a snapshot of the environment variables of this process.

This structure is created by env::vars_os(). See its documentation for more.

Fields

inner: Env

Trait Implementations

impl !Send for VarsOs

impl !Sync for VarsOs

impl Debug for VarsOs

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

impl Iterator for VarsOs

type Item = (OsString, OsString);
fn next(&mut self) -> Option<(OsString, OsString)>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl Freeze for VarsOs

impl RefUnwindSafe for VarsOs

impl Unpin for VarsOs

impl UnsafeUnpin for VarsOs

impl UnwindSafe for VarsOs

Blanket Implementations

impl<I> IntoIterator for VarsOs where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for VarsOs where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for VarsOs where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for VarsOs where T: ?Sized,

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

impl<T> From<T> for VarsOs

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for VarsOs where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for VarsOs

impl<T, U> Into<U> for VarsOs where U: From<T>,

fn into(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<U> for VarsOs where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for VarsOs where U: TryFrom<T>,

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