Trait frunk::path::PathTraverser

source ·
pub trait PathTraverser<Path, Indices> {
    type TargetValue;

    // Required method
    fn get(self) -> Self::TargetValue;
}
Expand description

Trait for traversing based on Path

Required Associated Types§

Required Methods§

source

fn get(self) -> Self::TargetValue

Returns a pair consisting of the value pointed to by the target key and the remainder.

Implementors§

source§

impl<HeadName, TailNames, HeadPluckIndex, TailPluckIndices, Traversable> PathTraverser<Path<HCons<HeadName, Path<TailNames>>>, HCons<HeadPluckIndex, TailPluckIndices>> for Traversablewhere Traversable: IntoLabelledGeneric, <Traversable as IntoLabelledGeneric>::Repr: ByNameFieldPlucker<HeadName, HeadPluckIndex>, <<Traversable as IntoLabelledGeneric>::Repr as ByNameFieldPlucker<HeadName, HeadPluckIndex>>::TargetValue: PathTraverser<Path<TailNames>, TailPluckIndices>,

§

type TargetValue = <<<Traversable as IntoLabelledGeneric>::Repr as ByNameFieldPlucker<HeadName, HeadPluckIndex>>::TargetValue as PathTraverser<Path<TailNames>, TailPluckIndices>>::TargetValue

source§

impl<Name, PluckIndex, Traversable> PathTraverser<Path<HCons<Name, HNil>>, PluckIndex> for Traversablewhere Traversable: IntoLabelledGeneric, <Traversable as IntoLabelledGeneric>::Repr: ByNameFieldPlucker<Name, PluckIndex>,

§

type TargetValue = <<Traversable as IntoLabelledGeneric>::Repr as ByNameFieldPlucker<Name, PluckIndex>>::TargetValue