pub struct DefaultShortestPathOptions {}
Expand description
Default implementation of a type implementing the ShortestPathOptions
trait.
Implementations§
Trait Implementations§
Source§impl Default for DefaultShortestPathOptions
impl Default for DefaultShortestPathOptions
Source§fn default() -> DefaultShortestPathOptions
fn default() -> DefaultShortestPathOptions
Returns the “default value” for a type. Read more
Source§impl ShortestPathOptions for DefaultShortestPathOptions
impl ShortestPathOptions for DefaultShortestPathOptions
Source§fn max_distance_to_graph(&self) -> u32
fn max_distance_to_graph(&self) -> u32
Number of cells to be allowed to be missing between
a cell and the graph while the cell is still counted as being connected
to the graph. Read more
Source§fn num_destinations_to_reach(&self) -> Option<usize>
fn num_destinations_to_reach(&self) -> Option<usize>
number of destinations to reach.
Routing for the origin cell will stop when this number of destinations are reached. When not set,
routing will continue until all destinations are reached
Auto Trait Implementations§
impl Freeze for DefaultShortestPathOptions
impl RefUnwindSafe for DefaultShortestPathOptions
impl Send for DefaultShortestPathOptions
impl Sync for DefaultShortestPathOptions
impl Unpin for DefaultShortestPathOptions
impl UnwindSafe for DefaultShortestPathOptions
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more