Struct Vars

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

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

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

Fields

inner: VarsOs

Trait Implementations

impl Debug for Vars

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

impl Iterator for Vars

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

Auto Trait Implementations

impl !Send for Vars

impl !Sync for Vars

impl Freeze for Vars

impl RefUnwindSafe for Vars

impl Unpin for Vars

impl UnsafeUnpin for Vars

impl UnwindSafe for Vars

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for Vars

fn from(t: T) -> T

Returns the argument unchanged.

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

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

impl<T> SizedTypeProperties for Vars

impl<T, U> Into<U> for Vars 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 Vars where U: Into<T>,

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

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

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