pub trait HasRelativeAccess<'a>: KnowsRelativeAccessType<'a> + KnowsPathSegment {
    // Required method
    fn relative<K>(
        self,
        path: impl IntoIterator<Item = K>
    ) -> Option<Self::RelativeType>
       where K: Into<<Self as KnowsPathSegment>::PathSegment>;
}

Required Methods§

source

fn relative<K>( self, path: impl IntoIterator<Item = K> ) -> Option<Self::RelativeType>
where K: Into<<Self as KnowsPathSegment>::PathSegment>,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, Parent, Value> HasRelativeAccess<'a> for &'a Visitor<Parent, Value>
where Visitor<Parent, Value>: Into<Self::RelativeType> + Clone + KnowsRelativeAccessType<'a> + KnowsPathSegment + 'a, Self: HasValue<'a> + HasParent<'a> + HasRoot<'a> + HasGet<'a>, <Self as KnowsParent<'a>>::Parent: Into<Self::RelativeType>, <Self as KnowsRoot<'a>>::Root: Into<Self::RelativeType>, <Self as KnowsGetType<'a>>::GetType: Into<Self::RelativeType> + KnowsPathSegment<PathSegment = <Self as KnowsPathSegment>::PathSegment>, Self::RelativeType: HasRelativeAccess<'a, RelativeType = <Self as KnowsRelativeAccessType<'a>>::RelativeType, PathSegment = <Self as KnowsPathSegment>::PathSegment>,

source§

impl<'a, Value> HasRelativeAccess<'a> for &'a RootVisitor<Value>
where RootVisitor<Value>: Into<Self::RelativeType> + Clone + KnowsRelativeAccessType<'a> + KnowsPathSegment + 'a, Self: HasValue<'a> + HasParent<'a> + HasRoot<'a> + HasGet<'a>, <Self as KnowsParent<'a>>::Parent: Into<Self::RelativeType>, <Self as KnowsRoot<'a>>::Root: Into<Self::RelativeType>, <Self as KnowsGetType<'a>>::GetType: Into<Self::RelativeType> + KnowsPathSegment<PathSegment = <Self as KnowsPathSegment>::PathSegment>, Self::RelativeType: HasRelativeAccess<'a, RelativeType = <Self as KnowsRelativeAccessType<'a>>::RelativeType, PathSegment = <Self as KnowsPathSegment>::PathSegment>,