Struct is_tree::visitor::root_visitor::RootVisitor
source · pub struct RootVisitor<Value> {
pub value: Value,
}
Fields§
§value: Value
Implementations§
source§impl<Value> RootVisitor<Value>
impl<Value> RootVisitor<Value>
Trait Implementations§
source§impl<Value: Clone> Clone for RootVisitor<Value>
impl<Value: Clone> Clone for RootVisitor<Value>
source§fn clone(&self) -> RootVisitor<Value>
fn clone(&self) -> RootVisitor<Value>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Value: Default> Default for RootVisitor<Value>
impl<Value: Default> Default for RootVisitor<Value>
source§fn default() -> RootVisitor<Value>
fn default() -> RootVisitor<Value>
Returns the “default value” for a type. Read more
source§impl<'a, T> From<RootVisitor<&'a mut T>> for RootVisitor<&'a T>
impl<'a, T> From<RootVisitor<&'a mut T>> for RootVisitor<&'a T>
source§fn from(visitor: RootVisitor<&'a mut T>) -> Self
fn from(visitor: RootVisitor<&'a mut T>) -> Self
Converts to this type from the input type.
source§impl<T> From<T> for RootVisitor<T>
impl<T> From<T> for RootVisitor<T>
source§impl<'a, Value> HasBranches<'a> for &'a RootVisitor<Value>where
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>,
RootVisitor<Value>: Into<<Self::Branches as KnowsParent<'a>>::Parent> + Clone,
impl<'a, Value> HasBranches<'a> for &'a RootVisitor<Value>where
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>,
RootVisitor<Value>: Into<<Self::Branches as KnowsParent<'a>>::Parent> + Clone,
source§impl<'a, Value> HasGet<'a> for &'a RootVisitor<Value>where
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>,
RootVisitor<Value>: Into<<Self::GetType as KnowsParent<'a>>::Parent> + Clone,
impl<'a, Value> HasGet<'a> for &'a RootVisitor<Value>where
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>,
RootVisitor<Value>: Into<<Self::GetType as KnowsParent<'a>>::Parent> + Clone,
source§impl<'a, Value> HasParent<'a> for &'a RootVisitor<Value>where
Value: Clone,
impl<'a, Value> HasParent<'a> for &'a RootVisitor<Value>where
Value: Clone,
source§impl<Value> HasPath for RootVisitor<Value>where
Value: HasPathSegment,
impl<Value> HasPath for RootVisitor<Value>where
Value: HasPathSegment,
fn path(&self) -> Path<Value::PathSegment>
source§impl<Value> HasPathSegment for RootVisitor<Value>where
Value: HasPathSegment,
impl<Value> HasPathSegment for RootVisitor<Value>where
Value: HasPathSegment,
fn path_segment(&self) -> &Self::PathSegment
fn is(&self, identifier: impl PartialEq<Self::PathSegment>) -> bool
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>,
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>,
fn relative<K>( self, path: impl IntoIterator<Item = K> ) -> Option<Self::RelativeType>
source§impl<'a, Value> HasRoot<'a> for &'a RootVisitor<Value>where
Value: Clone,
impl<'a, Value> HasRoot<'a> for &'a RootVisitor<Value>where
Value: Clone,
source§impl<'a, Value> HasValue<'a> for &'a mut RootVisitor<Value>
impl<'a, Value> HasValue<'a> for &'a mut RootVisitor<Value>
source§impl<'a, Value> KnowsBranches<'a> for RootVisitor<Value>
impl<'a, Value> KnowsBranches<'a> for RootVisitor<Value>
type Branches = <<Value as KnowsBranches<'a>>::Branches as KnowsVisitor<'a>>::Visitor
source§impl<'a, Value> KnowsGetType<'a> for RootVisitor<Value>
impl<'a, Value> KnowsGetType<'a> for RootVisitor<Value>
type GetType = <<Value as KnowsGetType<'a>>::GetType as KnowsVisitor<'a>>::Visitor
source§impl<'a, Value> KnowsParent<'a> for RootVisitor<Value>
impl<'a, Value> KnowsParent<'a> for RootVisitor<Value>
type Parent = RootVisitor<Value>
source§impl<Value> KnowsPathSegment for RootVisitor<Value>where
Value: KnowsPathSegment,
impl<Value> KnowsPathSegment for RootVisitor<Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
source§impl<'a, Value> KnowsRelativeAccessType<'a> for RootVisitor<Value>where
Value: KnowsRelativeAccessType<'a>,
impl<'a, Value> KnowsRelativeAccessType<'a> for RootVisitor<Value>where
Value: KnowsRelativeAccessType<'a>,
type RelativeType = <Value as KnowsRelativeAccessType<'a>>::RelativeType
source§impl<'a, Value> KnowsRoot<'a> for RootVisitor<Value>
impl<'a, Value> KnowsRoot<'a> for RootVisitor<Value>
type Root = RootVisitor<Value>
source§impl<'a, Value> KnowsValue<'a> for RootVisitor<Value>
impl<'a, Value> KnowsValue<'a> for RootVisitor<Value>
impl<Value: Copy> Copy for RootVisitor<Value>
Auto Trait Implementations§
impl<Value> RefUnwindSafe for RootVisitor<Value>where
Value: RefUnwindSafe,
impl<Value> Send for RootVisitor<Value>where
Value: Send,
impl<Value> Sync for RootVisitor<Value>where
Value: Sync,
impl<Value> Unpin for RootVisitor<Value>where
Value: Unpin,
impl<Value> UnwindSafe for RootVisitor<Value>where
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