pub struct Reroute<'g, G: ?Sized> {
pub graph: &'g G,
pub max_expansions: usize,
}Expand description
Replaces the stretch between two path vertices by a random detour (a bounded randomised depth-first search that avoids the rest of the path).
Fields§
§graph: &'g GThe graph.
max_expansions: usizeThe largest number of vertices one detour search may expand.
Trait Implementations§
impl<'g, G: Copy + ?Sized> Copy for Reroute<'g, G>
Auto Trait Implementations§
impl<'g, G> Forget for Reroute<'g, G>where
G: ?Sized,
impl<'g, G> Freeze for Reroute<'g, G>
impl<'g, G> Move for Reroute<'g, G>where
G: ?Sized,
impl<'g, G> RefUnwindSafe for Reroute<'g, G>
impl<'g, G> Send for Reroute<'g, G>
impl<'g, G> Sync for Reroute<'g, G>
impl<'g, G> Unpin for Reroute<'g, G>
impl<'g, G> UnsafeUnpin for Reroute<'g, G>
impl<'g, G> UnwindSafe for Reroute<'g, G>
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