Struct is_tree::visitor::root_visitor::RootVisitor
source · pub struct RootVisitor<Value> {
pub value: Value,
}
Fields§
§value: Value
Implementations§
source§impl<'a, Value> RootVisitor<Value>
impl<'a, 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, Value> HasGet<'a> for &'a RootVisitor<Value>where
Value: Clone + Copy + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
RootVisitor<Value>: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
impl<'a, Value> HasGet<'a> for &'a RootVisitor<Value>where
Value: Clone + Copy + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
RootVisitor<Value>: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
source§impl<'a, Value> HasGet<'a> for RootVisitor<Value>where
Value: Copy + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
impl<'a, Value> HasGet<'a> for RootVisitor<Value>where
Value: Copy + KnowsPathSegment + HasGet<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<<Value::GetType as KnowsParentVisitor<'a>>::ParentVisitor>,
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<<Value as KnowsPathSegment>::PathSegment> for RootVisitor<Value>where
Value: HasPathSegment,
impl<Value> HasPath<<Value as KnowsPathSegment>::PathSegment> for RootVisitor<Value>where
Value: HasPathSegment,
fn path(&self) -> Path<Value::PathSegment>
source§impl<'a, Value> HasPathSegment for &'a RootVisitor<Value>where
Value: HasPathSegment,
impl<'a, Value> HasPathSegment for &'a RootVisitor<Value>where
Value: HasPathSegment,
fn path_segment(&self) -> &Self::PathSegment
fn is(&self, identifier: impl PartialEq<Self::PathSegment>) -> bool
source§impl<'a, Value> HasPathSegment for RootVisitor<Value>where
Value: HasPathSegment,
impl<'a, 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
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>,
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>,
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> IsVisitor<'a, Value> for RootVisitor<Value>where
Value: KnowsPathSegment,
impl<'a, Value> IsVisitor<'a, Value> for RootVisitor<Value>where
Value: KnowsPathSegment,
fn visit<Child>(self, value: Child) -> Visitor<Child::ParentVisitor, Child>where
Child: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
Self: Into<Child::ParentVisitor>,
source§impl<'a, Value> KnowsGetType<'a> for &'a RootVisitor<Value>where
Value: KnowsPathSegment + KnowsGetType<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
impl<'a, Value> KnowsGetType<'a> for &'a RootVisitor<Value>where
Value: KnowsPathSegment + KnowsGetType<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
type GetType = Visitor<<<Value as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor, <Value as KnowsGetType<'a>>::GetType>
source§impl<'a, Value> KnowsGetType<'a> for RootVisitor<Value>where
Value: KnowsPathSegment + KnowsGetType<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
impl<'a, Value> KnowsGetType<'a> for RootVisitor<Value>where
Value: KnowsPathSegment + KnowsGetType<'a>,
Value::GetType: KnowsPathSegment<PathSegment = Value::PathSegment> + KnowsParentVisitor<'a>,
type GetType = Visitor<<<Value as KnowsGetType<'a>>::GetType as KnowsParentVisitor<'a>>::ParentVisitor, <Value as KnowsGetType<'a>>::GetType>
source§impl<'a, Value> KnowsParent<'a> for &'a RootVisitor<Value>
impl<'a, Value> KnowsParent<'a> for &'a RootVisitor<Value>
type Parent = RootVisitor<Value>
source§impl<'a, Value> KnowsParentVisitor<'a> for RootVisitor<Value>where
Value: KnowsPathSegment + KnowsParentVisitor<'a>,
impl<'a, Value> KnowsParentVisitor<'a> for RootVisitor<Value>where
Value: KnowsPathSegment + KnowsParentVisitor<'a>,
type ParentVisitor = RootVisitor<Value>
source§impl<'a, Value> KnowsPathSegment for &'a RootVisitor<Value>where
Value: KnowsPathSegment,
impl<'a, Value> KnowsPathSegment for &'a RootVisitor<Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
source§impl<'a, Value> KnowsPathSegment for RootVisitor<Value>where
Value: KnowsPathSegment,
impl<'a, Value> KnowsPathSegment for RootVisitor<Value>where
Value: KnowsPathSegment,
type PathSegment = <Value as KnowsPathSegment>::PathSegment
source§impl<'a, Value> KnowsRelativeAccessType<'a> for &'a RootVisitor<Value>where
Value: KnowsRelativeAccessType<'a>,
impl<'a, Value> KnowsRelativeAccessType<'a> for &'a RootVisitor<Value>where
Value: KnowsRelativeAccessType<'a>,
type RelativeType = <Value as KnowsRelativeAccessType<'a>>::RelativeType
source§impl<'a, Value> KnowsRoot<'a> for &'a RootVisitor<Value>
impl<'a, Value> KnowsRoot<'a> for &'a RootVisitor<Value>
type Root = 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