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