pub struct MapEnvSource { /* private fields */ }Expand description
Map-backed implementation for tests. Built from any
IntoIterator<Item=(K,V)> (including HashMap<K, V> via the
From impl below) or fluently via MapEnvSource::with.
Implementations§
Source§impl MapEnvSource
impl MapEnvSource
Sourcepub fn new() -> Self
pub fn new() -> Self
Create an empty source. Use MapEnvSource::with to seed entries
fluently, or MapEnvSource::set for the mutable form.
Trait Implementations§
Source§impl Clone for MapEnvSource
impl Clone for MapEnvSource
Source§fn clone(&self) -> MapEnvSource
fn clone(&self) -> MapEnvSource
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 moreSource§impl Debug for MapEnvSource
impl Debug for MapEnvSource
Source§impl Default for MapEnvSource
impl Default for MapEnvSource
Source§fn default() -> MapEnvSource
fn default() -> MapEnvSource
Returns the “default value” for a type. Read more
Source§impl EnvSource for MapEnvSource
impl EnvSource for MapEnvSource
Auto Trait Implementations§
impl Freeze for MapEnvSource
impl RefUnwindSafe for MapEnvSource
impl Send for MapEnvSource
impl Sync for MapEnvSource
impl Unpin for MapEnvSource
impl UnsafeUnpin for MapEnvSource
impl UnwindSafe for MapEnvSource
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