pub trait ByNameFieldPlucker<TargetKey, Index> {
type TargetValue;
type Remainder;
// Required method
fn pluck_by_name(
self,
) -> (Field<TargetKey, Self::TargetValue>, Self::Remainder);
}
Expand description
Trait for plucking out a Field
from a type by type-level TargetKey
.
Required Associated Types§
type TargetValue
type Remainder
Required Methods§
Sourcefn pluck_by_name(self) -> (Field<TargetKey, Self::TargetValue>, Self::Remainder)
fn pluck_by_name(self) -> (Field<TargetKey, Self::TargetValue>, Self::Remainder)
Returns a pair consisting of the value pointed to by the target key and the remainder.
Implementors§
Source§impl<'a, Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for &'a HCons<Head, Tail>where
&'a Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when target is reference and the pluck target key is in the tail.
impl<'a, Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for &'a HCons<Head, Tail>where
&'a Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when target is reference and the pluck target key is in the tail.
type TargetValue = <&'a Tail as ByNameFieldPlucker<K, TailIndex>>::TargetValue
type Remainder = HCons<&'a Head, <&'a Tail as ByNameFieldPlucker<K, TailIndex>>::Remainder>
Source§impl<'a, K, V, Tail: ToRef<'a>> ByNameFieldPlucker<K, Here> for &'a HCons<Field<K, V>, Tail>
Implementation when target is reference and the pluck target key is in the head.
impl<'a, K, V, Tail: ToRef<'a>> ByNameFieldPlucker<K, Here> for &'a HCons<Field<K, V>, Tail>
Implementation when target is reference and the pluck target key is in the head.
Source§impl<Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for HCons<Head, Tail>where
Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when the pluck target key is in the tail.
impl<Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for HCons<Head, Tail>where
Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when the pluck target key is in the tail.