pub struct EnvironmentInput { /* private fields */ }Expand description
A base environment selected by the process adapter.
The constructors encode the base that the variables represent. This keeps
an EnvironmentSpec from being applied to an arbitrarily broad map while
claiming that the map is empty or platform-core input.
Implementations§
Source§impl EnvironmentInput
impl EnvironmentInput
Sourcepub fn all<I>(variables: I) -> Result<Self, CommandError>
pub fn all<I>(variables: I) -> Result<Self, CommandError>
Creates a validated input containing all inherited variables.
Sourcepub fn core(environment: CoreEnvironment) -> Self
pub fn core(environment: CoreEnvironment) -> Self
Creates an input containing a process adapter’s selected core set.
Sourcepub const fn base(&self) -> EnvironmentBase
pub const fn base(&self) -> EnvironmentBase
Returns the declared base represented by this input.
Sourcepub fn variables(&self) -> &BTreeMap<OsString, OsString>
pub fn variables(&self) -> &BTreeMap<OsString, OsString>
Returns the variables represented by this input.
Sourcepub fn into_variables(self) -> BTreeMap<OsString, OsString>
pub fn into_variables(self) -> BTreeMap<OsString, OsString>
Consumes the input and returns its selected variables.
Trait Implementations§
Source§impl Clone for EnvironmentInput
impl Clone for EnvironmentInput
Source§impl Debug for EnvironmentInput
impl Debug for EnvironmentInput
impl Eq for EnvironmentInput
Source§impl PartialEq for EnvironmentInput
impl PartialEq for EnvironmentInput
impl StructuralPartialEq for EnvironmentInput
Auto Trait Implementations§
impl Freeze for EnvironmentInput
impl RefUnwindSafe for EnvironmentInput
impl Send for EnvironmentInput
impl Sync for EnvironmentInput
impl Unpin for EnvironmentInput
impl UnsafeUnpin for EnvironmentInput
impl UnwindSafe for EnvironmentInput
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