1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::{RootVisitor, KnowsParent, HasParent};

impl<'a, Value> KnowsParent<'a> for RootVisitor<Value> {
    type Parent = RootVisitor<Value>;
}

impl<'a, Value> HasParent<'a> for &'a RootVisitor<Value>
where Value: Clone
{
    fn parent(self) -> Self::Parent {
        self.clone()
    }
}