pub struct EnvMap { /* private fields */ }Expand description
An insertion-ordered string map. Later writes to an existing key overwrite in place (preserving position); new keys are appended.
Implementations§
Source§impl EnvMap
impl EnvMap
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&str>
pub fn set(&mut self, key: impl Into<String>, value: impl Into<String>)
pub fn contains(&self, key: &str) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&str, &str)>
pub fn keys(&self) -> impl Iterator<Item = &str>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for EnvMap
impl Freeze for EnvMap
impl RefUnwindSafe for EnvMap
impl Send for EnvMap
impl Sync for EnvMap
impl Unpin for EnvMap
impl UnsafeUnpin for EnvMap
impl UnwindSafe for EnvMap
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