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