use preserves::value::IOValue; use std::rc::Rc; pub enum Path { Root, Step(IOValue, Rc), } impl Path { pub fn root() -> Rc { Rc::new(Path::Root) } pub fn step(self: &Rc, v: &IOValue) -> Rc { Rc::new(Path::Step(v.clone(), Rc::clone(self))) } }