pub struct RoutingGraph { /* private fields */ }Expand description
A partial grid: points joined by axis-parallel, obstacle-free edges.
Every vertex has at most one neighbour in each direction, and the edge to it is the
segment between the two points. Edges are undirected: b is the right neighbour of
a exactly when a is the left neighbour of b.
Implementations§
Source§impl RoutingGraph
impl RoutingGraph
Sourcepub fn capacity(&self) -> usize
pub fn capacity(&self) -> usize
One more than the largest slot index ever used; the size for per-vertex arrays.
Sourcepub fn neighbor(&self, v: VertexId, dir: Direction) -> Option<VertexId>
pub fn neighbor(&self, v: VertexId, dir: Direction) -> Option<VertexId>
The neighbour of v in direction dir, if any.
Sourcepub fn vertices(&self) -> impl Iterator<Item = VertexId> + '_
pub fn vertices(&self) -> impl Iterator<Item = VertexId> + '_
Every vertex, in increasing point order.
Trait Implementations§
Source§impl Clone for RoutingGraph
impl Clone for RoutingGraph
Source§impl Debug for RoutingGraph
impl Debug for RoutingGraph
Auto Trait Implementations§
impl Forget for RoutingGraph
impl Freeze for RoutingGraph
impl Move for RoutingGraph
impl RefUnwindSafe for RoutingGraph
impl Send for RoutingGraph
impl Sync for RoutingGraph
impl Unpin for RoutingGraph
impl UnsafeUnpin for RoutingGraph
impl UnwindSafe for RoutingGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more