pub struct Map<'a> { /* private fields */ }Expand description
A map used for holding query string paramenters or headers
Implementations
sourceimpl<'a> Map<'a>
impl<'a> Map<'a>
sourcepub fn get(&self, key: &str) -> Option<&str>
pub fn get(&self, key: &str) -> Option<&str>
Get the value of an element of this Map, or None if it doesn’t contain key
sourcepub fn insert<K, V>(&mut self, key: K, value: V) where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
pub fn insert<K, V>(&mut self, key: K, value: V) where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
Insert a new element in this Map
Overwrites elements with the same key, if present.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Map<'a>
impl<'a> Send for Map<'a>
impl<'a> Sync for Map<'a>
impl<'a> Unpin for Map<'a>
impl<'a> UnwindSafe for Map<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more