[][src]Struct amadeus::prelude::data::Map

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

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

Methods

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

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn get<Q>(&self, k: &Q) -> Option<&V> where
    K: Borrow<Q>,
    Q: Hash + Eq + ?Sized
[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> PostgresData for Map<K, V> where
    K: Hash + Eq + PostgresData,
    V: PostgresData
[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) -> <Map<K, V> as IntoIterator>::IntoIter[src]

Creates an iterator over the (key, value) pairs of the Map.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

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<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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]

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> ProcessSend for T where
    T: Send + Serialize + Deserialize<'de> + 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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

impl<T> FromCast<T> for T

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> FromBits<T> for T

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

impl<T> Any for T where
    T: Any + Serialize + Deserialize
[src]

impl<T> Debug for T where
    T: Debug + Serialize + Deserialize + ?Sized
[src]

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

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

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

impl<T> Type for T[src]

type Meta = Concrete

Type of metadata for type.

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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