pub struct ProcessEnv;Expand description
The live process environment.
Every lookup reads through to std::env::var, so a variable changed after
this value was created is visible to the next lookup. This is the
environment a Terminal uses when built over
process stdio or the controlling terminal.
Two things follow from going through std::env::var, and neither is true
of EnvList: a value that is not valid Unicode reads as absent rather
than panicking, and on Windows names match case-insensitively.
Trait Implementations§
Source§impl Clone for ProcessEnv
impl Clone for ProcessEnv
Source§fn clone(&self) -> ProcessEnv
fn clone(&self) -> ProcessEnv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProcessEnv
Source§impl Debug for ProcessEnv
impl Debug for ProcessEnv
Source§impl Default for ProcessEnv
impl Default for ProcessEnv
Source§fn default() -> ProcessEnv
fn default() -> ProcessEnv
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessEnv
impl RefUnwindSafe for ProcessEnv
impl Send for ProcessEnv
impl Sync for ProcessEnv
impl Unpin for ProcessEnv
impl UnsafeUnpin for ProcessEnv
impl UnwindSafe for ProcessEnv
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more