Trait vector_lookup::path::TargetPath

pub trait TargetPath<'a>: Clone {
    type ValuePath: ValuePath<'a>;

    // Required methods
    fn prefix(&self) -> PathPrefix;
    fn value_path(&self) -> Self::ValuePath;
}

Required Associated Types§

Required Methods§

fn prefix(&self) -> PathPrefix

fn value_path(&self) -> Self::ValuePath

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<'a> TargetPath<'a> for &'a str

§

type ValuePath = &'a str

§

fn prefix(&self) -> PathPrefix

§

fn value_path(&self) -> <&'a str as TargetPath<'a>>::ValuePath

§

impl<'a, T> TargetPath<'a> for (PathPrefix, T)
where T: ValuePath<'a>,

§

type ValuePath = T

§

fn prefix(&self) -> PathPrefix

§

fn value_path(&self) -> <(PathPrefix, T) as TargetPath<'a>>::ValuePath

Implementors§

source§

impl<'a> TargetPath<'a> for &'a ConfigTargetPath

§

impl<'a> TargetPath<'a> for &'a OwnedTargetPath

§

impl<'a, 'b> TargetPath<'a> for BorrowedTargetPath<'a, 'b>