pub struct MapEnv { /* private fields */ }Expand description
In-memory Env for tests. Keys absent from the map return None;
empty-string values round-trip as Some("") to match SystemEnv.
Construct with MapEnv::new (empty) or MapEnv::default, then
chain MapEnv::with to insert keys.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapEnv
impl RefUnwindSafe for MapEnv
impl Send for MapEnv
impl Sync for MapEnv
impl Unpin for MapEnv
impl UnsafeUnpin for MapEnv
impl UnwindSafe for MapEnv
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