[][src]Struct amadeus_types::Map

pub struct Map<K: Hash + Eq, V>(_);

Map<K, V> corresponds to the Map logical type.

Methods

impl<K, V> Map<K, V> where
    K: Hash + Eq
[src]

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Hash + Eq
[src]

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]

impl DowncastImpl<Value> for Map<Value, Value>[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]

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]

impl<K, V, V1> PartialEq<Map<K, V1>> for Map<K, V> where
    K: Eq + Hash,
    V: PartialEq<V1>, 
[src]

impl<K, V> PartialEq<Map<K, V>> for Value where
    Value: PartialEq<K> + PartialEq<V>,
    K: Hash + Eq + Clone + Into<Value>, 
[src]

impl<K, V> IntoIterator for Map<K, V> where
    K: Hash + Eq
[src]

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]

impl<K, V> From<Map<K, V>> for Value where
    K: Into<Self> + Hash + Eq,
    V: Into<Self>, 
[src]

impl From<Map<Value, Value>> for Value[src]

impl<K, V> Debug for Map<K, V> where
    K: Hash + Eq + Debug,
    V: Debug
[src]

impl<K: Hash + Eq, V> Serialize for Map<K, V> where
    K: Serialize,
    V: Serialize
[src]

impl<'de, K: Hash + Eq, V> Deserialize<'de> for Map<K, V> where
    K: Deserialize<'de>,
    V: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<K, V> Unpin for Map<K, V> where
    K: Unpin,
    V: Unpin

impl<K, V> Sync for Map<K, V> where
    K: Sync,
    V: Sync

impl<K, V> Send for Map<K, V> where
    K: Send,
    V: Send

impl<K, V> UnwindSafe for Map<K, V> where
    K: UnwindSafe,
    V: UnwindSafe

impl<K, V> RefUnwindSafe for Map<K, V> where
    K: RefUnwindSafe,
    V: RefUnwindSafe

Blanket Implementations

impl<A, B> Downcast<A> for B where
    A: DowncastImpl<B>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]