use easy_node::NwCell; #[derive(Debug)] pub struct CyclicCell { val: T, me: NwCell, } impl CyclicCell { pub fn new(val: T, nw: &NwCell) -> Self { Self { val, me: nw.clone(), } } pub fn val(&self) -> &T { &self.val } pub fn me(&self) -> &NwCell { &self.me } }