[−][src]Struct amadeus_types::Map
Map<K, V>
corresponds to the Map logical type.
Methods
impl<K, V> Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
K: Borrow<Q>,
Q: Hash + Eq,
[src]
K: Borrow<Q>,
Q: Hash + Eq,
Returns a reference to the value corresponding to the key.
pub fn iter(&self) -> Iter<K, V>
[src]
Returns an iterator over the (ref key, ref value)
pairs of the Map.
Trait Implementations
impl<K, V> DowncastImpl<Value> for Map<K, V> where
K: DowncastImpl<Value> + Hash + Eq,
V: DowncastImpl<Value>,
[src]
K: DowncastImpl<Value> + Hash + Eq,
V: DowncastImpl<Value>,
default fn downcast_impl(self_: Value) -> Result<Self, DowncastError>
[src]
impl DowncastImpl<Value> for Map<Value, Value>
[src]
fn downcast_impl(self_: Value) -> Result<Self, DowncastError>
[src]
impl<K: Eq + Hash, V: Eq> Eq for Map<K, V>
[src]
impl<K, V> Into<HashMap<K, V, RandomState>> for Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
impl<K: Clone + Hash + Eq, V: Clone> Clone for Map<K, V>
[src]
impl<K, V, V1> PartialOrd<Map<K, V1>> for Map<K, V> where
K: Eq + Hash,
V: PartialOrd<V1>,
[src]
K: Eq + Hash,
V: PartialOrd<V1>,
fn partial_cmp(&self, other: &Map<K, V1>) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K, V, V1> PartialEq<Map<K, V1>> for Map<K, V> where
K: Eq + Hash,
V: PartialEq<V1>,
[src]
K: Eq + Hash,
V: PartialEq<V1>,
fn eq(&self, other: &Map<K, V1>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<K, V> PartialEq<Map<K, V>> for Value where
Value: PartialEq<K> + PartialEq<V>,
K: Hash + Eq + Clone + Into<Value>,
[src]
Value: PartialEq<K> + PartialEq<V>,
K: Hash + Eq + Clone + Into<Value>,
impl<K, V> IntoIterator for Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator over the (key, value)
pairs of the Map.
impl<K, V> From<HashMap<K, V, RandomState>> for Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
impl<K, V> From<Map<K, V>> for Value where
K: Into<Self> + Hash + Eq,
V: Into<Self>,
[src]
K: Into<Self> + Hash + Eq,
V: Into<Self>,
impl From<Map<Value, Value>> for Value
[src]
impl<K, V> Debug for Map<K, V> where
K: Hash + Eq + Debug,
V: Debug,
[src]
K: Hash + Eq + Debug,
V: Debug,
impl<K: Hash + Eq, V> Serialize for Map<K, V> where
K: Serialize,
V: Serialize,
[src]
K: Serialize,
V: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, K: Hash + Eq, V> Deserialize<'de> for Map<K, V> where
K: Deserialize<'de>,
V: Deserialize<'de>,
[src]
K: Deserialize<'de>,
V: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<K, V> Unpin for Map<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> Sync for Map<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Send for Map<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> UnwindSafe for Map<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,
impl<K, V> RefUnwindSafe for Map<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<A, B> Downcast<A> for B where
A: DowncastImpl<B>,
[src]
A: DowncastImpl<B>,
fn downcast(Self) -> Result<A, DowncastError>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,