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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more