pub struct EnvPair { /* private fields */ }Expand description
A modeled environment key/value pair.
Implementations§
Source§impl EnvPair
impl EnvPair
Sourcepub const fn new(key: EnvKey, value: EnvValue) -> EnvPair
pub const fn new(key: EnvKey, value: EnvValue) -> EnvPair
Creates an environment key/value pair.
Sourcepub fn from_value(key: EnvKey, value: impl Into<EnvValue>) -> EnvPair
pub fn from_value(key: EnvKey, value: impl Into<EnvValue>) -> EnvPair
Creates an environment key/value pair from a key and value-like input.
Sourcepub fn into_parts(self) -> (EnvKey, EnvValue)
pub fn into_parts(self) -> (EnvKey, EnvValue)
Consumes the pair and returns its parts.
Trait Implementations§
Source§impl Ord for EnvPair
impl Ord for EnvPair
Source§impl PartialOrd for EnvPair
impl PartialOrd for EnvPair
impl Eq for EnvPair
impl StructuralPartialEq for EnvPair
Auto Trait Implementations§
impl Freeze for EnvPair
impl RefUnwindSafe for EnvPair
impl Send for EnvPair
impl Sync for EnvPair
impl Unpin for EnvPair
impl UnsafeUnpin for EnvPair
impl UnwindSafe for EnvPair
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