Struct std::sys_common::process::CommandEnv
source · pub struct CommandEnv {
clear: bool,
saw_path: bool,
vars: BTreeMap<EnvKey, Option<OsString>>,
}
🔬This is a nightly-only experimental API. (
process_internals
)Fields§
§clear: bool
🔬This is a nightly-only experimental API. (
§process_internals
)saw_path: bool
🔬This is a nightly-only experimental API. (
§process_internals
)vars: BTreeMap<EnvKey, Option<OsString>>
🔬This is a nightly-only experimental API. (
process_internals
)Implementations§
source§impl CommandEnv
impl CommandEnv
pub fn capture(&self) -> BTreeMap<EnvKey, OsString>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn is_unchanged(&self) -> bool
🔬This is a nightly-only experimental API. (
process_internals
)pub fn capture_if_changed(&self) -> Option<BTreeMap<EnvKey, OsString>>
🔬This is a nightly-only experimental API. (
process_internals
)pub fn set(&mut self, key: &OsStr, value: &OsStr)
🔬This is a nightly-only experimental API. (
process_internals
)pub fn remove(&mut self, key: &OsStr)
🔬This is a nightly-only experimental API. (
process_internals
)pub fn clear(&mut self)
🔬This is a nightly-only experimental API. (
process_internals
)pub fn have_changed_path(&self) -> bool
🔬This is a nightly-only experimental API. (
process_internals
)fn maybe_saw_path(&mut self, key: &EnvKey)
🔬This is a nightly-only experimental API. (
process_internals
)pub fn iter(&self) -> CommandEnvs<'_> ⓘ
🔬This is a nightly-only experimental API. (
process_internals
)Trait Implementations§
source§impl Clone for CommandEnv
impl Clone for CommandEnv
source§fn clone(&self) -> CommandEnv
fn clone(&self) -> CommandEnv
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CommandEnv
impl Debug for CommandEnv
Auto Trait Implementations§
impl RefUnwindSafe for CommandEnv
impl Send for CommandEnv
impl Sync for CommandEnv
impl Unpin for CommandEnv
impl UnwindSafe for CommandEnv
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