1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use crate::Graph; #[derive(Debug)] pub struct GetEdgesVisitor<'a, G: Graph + ?Sized> { graph: &'a G, index: usize, } impl<'a, G> GetEdgesVisitor<'a, G> where G: Graph + ?Sized, { pub fn new(graph: &'a G) -> Self { Self { graph, index: 0 } } }