Trait frunk_core::labelled::ByNameFieldPlucker
source · 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<Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for HCons<Head, Tail>where
Tail: ByNameFieldPlucker<K, TailIndex>,
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.