Struct httptest::matchers::KV [−][src]
pub struct KV<K, V> where
Self: Sized,
K: ToOwned + ?Sized,
V: ToOwned + ?Sized, {
pub k: K::Owned,
pub v: V::Owned,
}
Expand description
A key-value pair.
Fields
k: K::Owned
The key
v: V::Owned
The value
Implementations
Trait Implementations
impl<K: PartialOrd, V: PartialOrd> PartialOrd<KV<K, V>> for KV<K, V> where
Self: Sized,
K: ToOwned + ?Sized,
V: ToOwned + ?Sized,
K::Owned: PartialOrd,
V::Owned: PartialOrd,
impl<K: PartialOrd, V: PartialOrd> PartialOrd<KV<K, V>> for KV<K, V> where
Self: Sized,
K: ToOwned + ?Sized,
V: ToOwned + ?Sized,
K::Owned: PartialOrd,
V::Owned: PartialOrd,
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<K: ?Sized, V: ?Sized> RefUnwindSafe for KV<K, V> where
<K as ToOwned>::Owned: RefUnwindSafe,
<V as ToOwned>::Owned: RefUnwindSafe,
impl<K: ?Sized, V: ?Sized> Send for KV<K, V> where
<K as ToOwned>::Owned: Send,
<V as ToOwned>::Owned: Send,
impl<K: ?Sized, V: ?Sized> Sync for KV<K, V> where
<K as ToOwned>::Owned: Sync,
<V as ToOwned>::Owned: Sync,
impl<K: ?Sized, V: ?Sized> Unpin for KV<K, V> where
<K as ToOwned>::Owned: Unpin,
<V as ToOwned>::Owned: Unpin,
impl<K: ?Sized, V: ?Sized> UnwindSafe for KV<K, V> where
<K as ToOwned>::Owned: UnwindSafe,
<V as ToOwned>::Owned: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more