Trait frunk_core::path::PathTraverser [−][src]
pub trait PathTraverser<Path, Indices> { type TargetValue; fn get(self) -> Self::TargetValue; }
Expand description
Trait for traversing based on Path
Associated Types
type TargetValue
Required methods
fn get(self) -> Self::TargetValue
fn get(self) -> Self::TargetValue
Returns a pair consisting of the value pointed to by the target key and the remainder.
Implementors
impl<HeadName, TailNames, HeadPluckIndex, TailPluckIndices, Traversable> PathTraverser<Path<HCons<HeadName, Path<TailNames>>>, HCons<HeadPluckIndex, TailPluckIndices>> for Traversable where
Traversable: IntoLabelledGeneric,
<Traversable as IntoLabelledGeneric>::Repr: ByNameFieldPlucker<HeadName, HeadPluckIndex>,
<<Traversable as IntoLabelledGeneric>::Repr as ByNameFieldPlucker<HeadName, HeadPluckIndex>>::TargetValue: PathTraverser<Path<TailNames>, TailPluckIndices>,
impl<Name, PluckIndex, Traversable> PathTraverser<Path<HCons<Name, HNil>>, PluckIndex> for Traversable where
Traversable: IntoLabelledGeneric,
<Traversable as IntoLabelledGeneric>::Repr: ByNameFieldPlucker<Name, PluckIndex>,