pub struct Visitor<Parent, Value> {
pub internal: Rc<Internal<Parent, Value>>,
}
Fields§
§internal: Rc<Internal<Parent, Value>>
Implementations§
source§impl<Parent, Value> Visitor<Parent, Value>
impl<Parent, Value> Visitor<Parent, Value>
pub fn new_with_parent(parent: Parent, value: Value) -> Self
Trait Implementations§
source§impl<'a, Parent, Value> HasGet<'a> for &'a Visitor<Parent, Value>where
Value: Clone + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
impl<'a, Parent, Value> HasGet<'a> for &'a Visitor<Parent, Value>where
Value: Clone + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
source§impl<'a, Parent, Value> HasGet<'a> for Visitor<Parent, Value>where
Value: Clone + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
impl<'a, Parent, Value> HasGet<'a> for Visitor<Parent, Value>where
Value: Clone + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
source§impl<'a, Parent, Value> HasPath<<Value as KnowsPathSegment>::PathSegment> for Visitor<Parent, Value>
impl<'a, Parent, Value> HasPath<<Value as KnowsPathSegment>::PathSegment> for Visitor<Parent, Value>
fn path(&self) -> Path<Value::PathSegment>
source§impl<'a, Parent, Value> HasPathSegment for Visitor<Parent, Value>where
Value: HasPathSegment,
impl<'a, Parent, Value> HasPathSegment for Visitor<Parent, Value>where
Value: HasPathSegment,
fn path_segment(&self) -> &Self::PathSegment
fn is(&self, identifier: impl PartialEq<Self::PathSegment>) -> bool
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>,
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>,
fn relative<K>( self, path: impl IntoIterator<Item = K> ) -> Option<Self::RelativeType>
source§impl<'a, Value> HasRoot<'a> for &'a Visitor<Value::ParentVisitor, Value>
impl<'a, Value> HasRoot<'a> for &'a Visitor<Value::ParentVisitor, Value>
source§impl<'a, Parent, Value> IsVisitor<'a, Value> for &'a Visitor<Parent, Value>where
Value: KnowsPathSegment,
impl<'a, Parent, Value> IsVisitor<'a, Value> for &'a Visitor<Parent, Value>where
Value: KnowsPathSegment,
fn visit<Child>(self, value: Child) -> Visitor<Child::ParentVisitor, Child>where
Child: KnowsPathSegment<PathSegment = <Value as KnowsPathSegment>::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<Child::ParentVisitor>,
source§impl<'a, Parent, Value> KnowsGetType<'a> for &'a Visitor<Parent, Value>
impl<'a, Parent, Value> KnowsGetType<'a> for &'a Visitor<Parent, Value>
type GetType = Visitor<<<Value as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor, <Value as KnowsGetType<'a>>::GetType>
source§impl<'a, Parent, Value> KnowsGetType<'a> for Visitor<Parent, Value>
impl<'a, Parent, Value> KnowsGetType<'a> for Visitor<Parent, Value>
type GetType = Visitor<<<Value as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor, <Value as KnowsGetType<'a>>::GetType>
source§impl<'a, Parent, Value> KnowsParentVisitor<'a> for Visitor<Parent, Value>where
Value: KnowsParentVisitor<'a>,
impl<'a, Parent, Value> KnowsParentVisitor<'a> for Visitor<Parent, Value>where
Value: KnowsParentVisitor<'a>,
type ParentVisitor = <Value as KnowsParentVisitor<'a>>::ParentVisitor
source§impl<'a, Parent, Value> KnowsPathSegment for &'a Visitor<Parent, Value>where
Value: KnowsPathSegment,
impl<'a, Parent, Value> KnowsPathSegment for &'a Visitor<Parent, Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
source§impl<'a, Parent, Value> KnowsPathSegment for Visitor<Parent, Value>where
Value: KnowsPathSegment,
impl<'a, Parent, Value> KnowsPathSegment for Visitor<Parent, Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
source§impl<'a, Parent, Value> KnowsRelativeAccessType<'a> for &'a Visitor<Parent, Value>where
Value: KnowsRelativeAccessType<'a>,
impl<'a, Parent, Value> KnowsRelativeAccessType<'a> for &'a Visitor<Parent, Value>where
Value: KnowsRelativeAccessType<'a>,
type RelativeType = <Value as KnowsRelativeAccessType<'a>>::RelativeType
source§impl<'a, Parent, Value> KnowsRelativeAccessType<'a> for Visitor<Parent, Value>where
Value: KnowsRelativeAccessType<'a>,
impl<'a, Parent, Value> KnowsRelativeAccessType<'a> for Visitor<Parent, Value>where
Value: KnowsRelativeAccessType<'a>,
type RelativeType = <Value as KnowsRelativeAccessType<'a>>::RelativeType
source§impl<'a, Value> KnowsRoot<'a> for &'a Visitor<Value::ParentVisitor, Value>
impl<'a, Value> KnowsRoot<'a> for &'a Visitor<Value::ParentVisitor, Value>
type Root = <<Value as KnowsParentVisitor<'a>>::ParentVisitor as KnowsRoot<'a>>::Root
source§impl<'a, Value> KnowsRoot<'a> for Visitor<Value::ParentVisitor, Value>
impl<'a, Value> KnowsRoot<'a> for Visitor<Value::ParentVisitor, Value>
type Root = <<Value as KnowsParentVisitor<'a>>::ParentVisitor as KnowsRoot<'a>>::Root
Auto Trait Implementations§
impl<Parent, Value> RefUnwindSafe for Visitor<Parent, Value>where
Parent: RefUnwindSafe,
Value: RefUnwindSafe,
impl<Parent, Value> !Send for Visitor<Parent, Value>
impl<Parent, Value> !Sync for Visitor<Parent, Value>
impl<Parent, Value> Unpin for Visitor<Parent, Value>
impl<Parent, Value> UnwindSafe for Visitor<Parent, Value>where
Parent: RefUnwindSafe,
Value: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more