[][src]Trait frunk::path::PathTraverser

pub trait PathTraverser<Path, Indices> {
    type TargetValue;
    fn get(self) -> Self::TargetValue;
}

Trait for traversing based on Path

Associated Types

Loading content...

Required methods

fn get(self) -> Self::TargetValue

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

Loading content...

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>, 
[src]

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

impl<Name, PluckIndex, Traversable> PathTraverser<Path<HCons<Name, HNil>>, PluckIndex> for Traversable where
    Traversable: IntoLabelledGeneric,
    <Traversable as IntoLabelledGeneric>::Repr: ByNameFieldPlucker<Name, PluckIndex>, 
[src]

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

Loading content...