pub struct Visitor<Parent, Value> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, Parent, Value> From<Visitor<Parent, &'a mut Value>> for Visitor<Parent, &'a Value>
impl<'a, Parent, Value> From<Visitor<Parent, &'a mut Value>> for Visitor<Parent, &'a Value>
source§fn from(visitor: Visitor<Parent, &'a mut Value>) -> Self
fn from(visitor: Visitor<Parent, &'a mut Value>) -> Self
Converts to this type from the input type.
source§impl<'a, Parent, Value> HasBranches<'a> for &'a Visitor<Parent, Value>where
Parent: Clone,
Value: Clone + HasBranches<'a>,
Value::Branches: KnowsPathSegment + KnowsVisitor<'a>,
<Value::Branches as KnowsVisitor<'a>>::Visitor: KnowsPathSegment<PathSegment = <Value::Branches as KnowsPathSegment>::PathSegment>,
Self::Branches: HasVisitorConstructor<'a, Value = Value::Branches>,
Visitor<Parent, Value>: Into<<Self::Branches as KnowsParent<'a>>::Parent> + Clone,
impl<'a, Parent, Value> HasBranches<'a> for &'a Visitor<Parent, Value>where
Parent: Clone,
Value: Clone + HasBranches<'a>,
Value::Branches: KnowsPathSegment + KnowsVisitor<'a>,
<Value::Branches as KnowsVisitor<'a>>::Visitor: KnowsPathSegment<PathSegment = <Value::Branches as KnowsPathSegment>::PathSegment>,
Self::Branches: HasVisitorConstructor<'a, Value = Value::Branches>,
Visitor<Parent, Value>: Into<<Self::Branches as KnowsParent<'a>>::Parent> + Clone,
source§impl<'a, Parent, Value> HasGet<'a> for &'a Visitor<Parent, Value>where
Parent: Clone,
Value: Clone + HasGet<'a>,
Value::GetType: KnowsPathSegment + KnowsVisitor<'a>,
<Value::GetType as KnowsVisitor<'a>>::Visitor: KnowsPathSegment<PathSegment = <Value::GetType as KnowsPathSegment>::PathSegment>,
Self::GetType: HasVisitorConstructor<'a, Value = Value::GetType>,
Visitor<Parent, Value>: Into<<Self::GetType as KnowsParent<'a>>::Parent>,
impl<'a, Parent, Value> HasGet<'a> for &'a Visitor<Parent, Value>where
Parent: Clone,
Value: Clone + HasGet<'a>,
Value::GetType: KnowsPathSegment + KnowsVisitor<'a>,
<Value::GetType as KnowsVisitor<'a>>::Visitor: KnowsPathSegment<PathSegment = <Value::GetType as KnowsPathSegment>::PathSegment>,
Self::GetType: HasVisitorConstructor<'a, Value = Value::GetType>,
Visitor<Parent, Value>: Into<<Self::GetType as KnowsParent<'a>>::Parent>,
source§impl<Parent, Value> HasPath for Visitor<Parent, Value>
impl<Parent, Value> HasPath for Visitor<Parent, Value>
fn path(&self) -> Path<Value::PathSegment>
source§impl<Parent, Value> HasPathSegment for Visitor<Parent, Value>where
Value: HasPathSegment + Clone,
impl<Parent, Value> HasPathSegment for Visitor<Parent, Value>where
Value: HasPathSegment + Clone,
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
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>,
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>,
fn relative<K>( self, path: impl IntoIterator<Item = K> ) -> Option<Self::RelativeType>
source§impl<'a, Parent, Value> HasRoot<'a> for &'a Visitor<Parent, Value>where
&'a Parent: HasRoot<'a>,
impl<'a, Parent, Value> HasRoot<'a> for &'a Visitor<Parent, Value>where
&'a Parent: HasRoot<'a>,
source§impl<'a, Parent, Value> HasVisitorConstructor<'a> for Visitor<Parent, Value>where
Value: KnowsVisitor<'a, Visitor = Visitor<Parent, Value>>,
impl<'a, Parent, Value> HasVisitorConstructor<'a> for Visitor<Parent, Value>where
Value: KnowsVisitor<'a, Visitor = Visitor<Parent, Value>>,
fn new_with_parent(parent: Parent, value: Value) -> Visitor<Parent, Value>
source§impl<'a, Parent, Value> KnowsBranches<'a> for Visitor<Parent, Value>
impl<'a, Parent, Value> KnowsBranches<'a> for Visitor<Parent, Value>
type Branches = <<Value as KnowsBranches<'a>>::Branches as KnowsVisitor<'a>>::Visitor
source§impl<'a, Parent, Value> KnowsGetType<'a> for Visitor<Parent, Value>
impl<'a, Parent, Value> KnowsGetType<'a> for Visitor<Parent, Value>
type GetType = <<Value as KnowsGetType<'a>>::GetType as KnowsVisitor<'a>>::Visitor
source§impl<Parent, Value> KnowsPathSegment for Visitor<Parent, Value>where
Value: KnowsPathSegment,
impl<Parent, Value> KnowsPathSegment for Visitor<Parent, Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
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
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: UnwindSafe,
Value: UnwindSafe,
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