use crate::Parent; use easy_node::Nw; #[derive(Debug)] pub struct Child { _value: T, parent: Nw>, } impl Child { pub fn new(value: T, parent: Nw>) -> Self { Self { _value: value, parent, } } pub fn parent(&self) -> &Nw> { &self.parent } }