[][src]Struct httptest::mappers::KV

pub struct KV<K: ?Sized, V: ?Sized> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned
{ pub k: K::Owned, pub v: V::Owned, }

A key-value pair.

Fields

k: K::Owned

The key

v: V::Owned

The value

Trait Implementations

impl<K: Debug + ?Sized, V: Debug + ?Sized> Debug for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: Debug,
    V::Owned: Debug
[src]

impl<M, K: ?Sized, V: ?Sized> Mapper<KV<K, V>> for Key<M> where
    K: ToOwned,
    V: ToOwned,
    M: Mapper<K>, 
[src]

type Out = M::Out

The output type.

impl<M, K: ?Sized, V: ?Sized> Mapper<KV<K, V>> for Value<M> where
    K: ToOwned,
    V: ToOwned,
    M: Mapper<V>, 
[src]

type Out = M::Out

The output type.

impl<K: ?Sized, V: ?Sized, KMapper, VMapper> Mapper<KV<K, V>> for (KMapper, VMapper) where
    K: ToOwned,
    V: ToOwned,
    KMapper: Mapper<K, Out = bool>,
    VMapper: Mapper<V, Out = bool>, 
[src]

type Out = bool

The output type.

impl<K: PartialEq + ?Sized, V: PartialEq + ?Sized> PartialEq<KV<K, V>> for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: PartialEq,
    V::Owned: PartialEq
[src]

impl<K: PartialOrd + ?Sized, V: PartialOrd + ?Sized> PartialOrd<KV<K, V>> for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned,
    K::Owned: PartialOrd,
    V::Owned: PartialOrd
[src]

impl<K: ?Sized, V: ?Sized> StructuralPartialEq for KV<K, V> where
    Self: Sized,
    K: ToOwned,
    V: ToOwned
[src]

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.