[−][src]Struct rusty_s3::Map
A map used for holding query string paramenters or headers
Implementations
impl<'a> Map<'a>
[src]
pub const fn new() -> Self
[src]
Construct a new empty Map
pub fn len(&self) -> usize
[src]
Get the number of elements in this Map
pub fn is_empty(&self) -> bool
[src]
Return true
if this Map
is empty
pub fn get(&self, key: &str) -> Option<&str>
[src]
Get the value of an element of this Map
, or None
if it doesn't contain key
pub fn insert<K, V>(&mut self, key: K, value: V) where
K: Into<Cow<'a, str>>,
V: Into<Cow<'a, str>>,
[src]
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.
pub fn remove(&mut self, key: &str) -> Option<(Cow<'a, str>, Cow<'a, str>)>
[src]
Remove an element from this Map
and return it
pub fn iter(&self) -> impl Iterator<Item = (&str, &str)> + Clone
[src]
Return an Iterator
over this map
The elements are always sorted in alphabetical order based on the key.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Map<'a>
[src]
impl<'a> Send for Map<'a>
[src]
impl<'a> Sync for Map<'a>
[src]
impl<'a> Unpin for Map<'a>
[src]
impl<'a> UnwindSafe for Map<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,