pub trait Visited<'a, T> { // Required methods fn visit(&mut self, v: &'a T) -> bool; fn already_visited(&self, v: &'a T) -> bool; }