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 Self: Into<Self::RelativeType> + KnowsPathSegment + HasRoot<'a> + HasGet<'a> + Into<<<Self as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor>, Parent: Into<Self::RelativeType> + Clone + 'a, Value: KnowsPathSegment + KnowsRelativeAccessType<'a> + KnowsParentVisitor<'a, ParentVisitor = Parent> + 'a, <Self as KnowsRoot<'a>>::Root: Into<Self::RelativeType>, &'a Parent: HasRoot<'a, Root = <Self as KnowsRoot<'a>>::Root>, &'a Value::RelativeType: HasRoot<'a, Root = <Self as KnowsRoot<'a>>::Root> + HasRelativeAccess<'a> + KnowsRelativeAccessType<'a, RelativeType = Self::RelativeType> + KnowsPathSegment<PathSegment = <Self as KnowsPathSegment>::PathSegment> + HasParent<'a>, <Self as KnowsGetType<'a>>::GetType: KnowsParentVisitor<'a> + Into<Self::RelativeType> + KnowsPathSegment<PathSegment = <Self as KnowsPathSegment>::PathSegment>, <Self as KnowsParent<'a>>::Parent: Into<Self::RelativeType>,

source§

impl<'a, Value> HasRelativeAccess<'a> for &'a RootVisitor<Value>
where Value: Copy + KnowsPathSegment + HasGet<'a> + KnowsRelativeAccessType<'a> + Clone + 'a, Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>, Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor> + Into<Self::RelativeType> + HasRoot<'a> + HasGet<'a>, <Self as KnowsGetType<'a>>::GetType: KnowsParentVisitor<'a> + Into<Self::RelativeType> + KnowsPathSegment<PathSegment = <Self as KnowsPathSegment>::PathSegment>, RootVisitor<Value>: Into<<<Self as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor>, &'a Self::RelativeType: HasRelativeAccess<'a, RelativeType = <Self as KnowsRelativeAccessType<'a>>::RelativeType, PathSegment = <Self as KnowsPathSegment>::PathSegment> + HasParent<'a> + HasRoot<'a>,