[−][src]Struct amadeus::data::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 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]
K: Borrow<Q>,
Q: Hash + Eq + ?Sized,
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]
K: Hash + Eq + PostgresData,
V: PostgresData,
fn query(_f: &mut Formatter, _name: Option<&Names>) -> Result<(), Error>
[src]
fn decode(
_type_: &Type,
_buf: Option<&[u8]>
) -> Result<Map<K, V>, Box<dyn Error + 'static + Send + Sync>>
[src]
_type_: &Type,
_buf: Option<&[u8]>
) -> Result<Map<K, V>, Box<dyn Error + 'static + Send + Sync>>
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) -> <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]
K: Eq + Clone + Hash,
V: Clone,
impl<K, V> Eq for Map<K, V> where
K: Eq + Hash,
V: Eq,
[src]
K: Eq + Hash,
V: Eq,
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> Serialize for Map<K, V> where
K: Eq + Hash + Serialize,
V: Serialize,
[src]
K: Eq + Hash + Serialize,
V: Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl DowncastImpl<Value> for Map<Value, Value>
[src]
fn downcast_impl(self_: Value) -> Result<Map<Value, Value>, DowncastError>
[src]
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<Map<K, V>, DowncastError>
[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]
K: Into<Value> + Hash + Eq,
V: Into<Value>,
impl<K, V> From<HashMap<K, V, RandomState>> for Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
fn from(hashmap: HashMap<K, V, RandomState>) -> Map<K, V>
[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, V> Into<HashMap<K, V, RandomState>> for Map<K, V> where
K: Hash + Eq,
[src]
K: Hash + Eq,
fn into(self) -> HashMap<K, V, RandomState>
[src]
impl<'de, K, V> Deserialize<'de> for Map<K, V> where
K: Eq + Hash + Deserialize<'de>,
V: Deserialize<'de>,
[src]
K: Eq + Hash + Deserialize<'de>,
V: Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Map<K, V>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Map<K, V>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<K, V> PartialEq<Map<K, V>> for Value where
K: Hash + Eq + Clone + Into<Value>,
Value: PartialEq<K>,
Value: PartialEq<V>,
[src]
K: Hash + Eq + Clone + Into<Value>,
Value: PartialEq<K>,
Value: PartialEq<V>,
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> SerdeData for Map<K, V> where
K: Hash + Eq + SerdeData,
V: SerdeData,
[src]
K: Hash + Eq + SerdeData,
V: SerdeData,
fn serialize<S>(
&self,
_serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
_serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn deserialize<'de, D>(
_deserializer: D,
_schema: Option<SchemaIncomplete>
) -> Result<Map<K, V>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
_deserializer: D,
_schema: Option<SchemaIncomplete>
) -> Result<Map<K, V>, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl<K, V> Data for Map<K, V> where
K: Hash + Eq + Data,
V: Data,
[src]
K: Hash + Eq + Data,
V: Data,
Auto Trait Implementations
impl<K, V> Send for Map<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Map<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Map<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
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<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> 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> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,
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]
A: DowncastImpl<B>,
fn downcast(self) -> Result<A, DowncastError>
[src]
impl<T> ProcessSend for T where
T: Send + Serialize + Deserialize<'de> + 'static + ?Sized,
[src]
T: Send + Serialize + Deserialize<'de> + 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> IntersectPlusUnionIsPlus for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> FromCast<T> for T
fn from_cast(t: T) -> T
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
fn cast(self) -> U
impl<T> FromBits<T> for T
fn from_bits(t: T) -> T
impl<T, U> IntoBits<U> for T where
U: FromBits<T>,
U: FromBits<T>,
fn into_bits(self) -> U
impl<T> Any for T where
T: Any + Serialize + Deserialize,
[src]
T: Any + Serialize + Deserialize,
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_send(self: Box<T>) -> Box<dyn Any + 'static + Send> where
T: Send,
[src]
T: Send,
fn into_any_sync(self: Box<T>) -> Box<dyn Any + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn into_any_send_sync(self: Box<T>) -> Box<dyn Any + 'static + Send + Sync> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> Debug for T where
T: Debug + Serialize + Deserialize + ?Sized,
[src]
T: Debug + Serialize + Deserialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
impl<T> Deserialize for T where
T: DeserializeOwned,
[src]
T: DeserializeOwned,
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
[src]
impl<T> Type for T
[src]
const METATYPE: MetaType
[src]
type Meta = Concrete
Type of metadata for type.
fn meta(&self) -> <T as Type>::Meta
[src]
fn data(&self) -> *const ()
[src]
fn data_mut(&mut self) -> *mut ()
[src]
unsafe fn uninitialized_box(<T as Type>::Meta) -> Box<T>
[src]
fn meta_type(&self) -> MetaType
[src]
impl<T> Type for T where
T: ?Sized,
[src]
T: ?Sized,
default fn meta(&self) -> <T as Type>::Meta
[src]
default fn data(&self) -> *const ()
[src]
default fn data_mut(&mut self) -> *mut ()
[src]
unsafe default fn uninitialized_box(t: <T as Type>::Meta) -> Box<T>
[src]
const METATYPE: MetaType
[src]
type Meta: 'static
fn meta_type(&self) -> MetaType
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,