#[non_exhaustive]pub struct WeightedForcedWalk {
pub cost: LengthInterval,
pub shortest: LengthInterval,
pub witness: Option<Point2>,
pub converged: bool,
pub cells: usize,
}Expand description
The cheapest walk from an origin to a target that enters a polygon, over weighted maps.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cost: LengthIntervalContains the cost of the cheapest walk that enters the polygon. Both ends are infinite when no walk from an origin to a target reaches the polygon.
shortest: LengthIntervalContains the cost of the cheapest walk from any origin to any
target, ignoring the polygon: cost is never below its lower end.
Infinite when no target is reachable from an origin.
witness: Option<Point2>A point of the polygon, in the free space, through which a walk
costing at most cost.upper passes; None when no walk reaches
the polygon.
converged: boolWhether cost is no wider than the tolerance asked for plus the
maps’ own brackets summed at the witness. When the cell budget runs
out first it is still sound, only wider.
cells: usizeCells examined.
Trait Implementations§
Source§impl Clone for WeightedForcedWalk
impl Clone for WeightedForcedWalk
Source§fn clone(&self) -> WeightedForcedWalk
fn clone(&self) -> WeightedForcedWalk
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeightedForcedWalk
impl Debug for WeightedForcedWalk
Source§impl PartialEq for WeightedForcedWalk
impl PartialEq for WeightedForcedWalk
impl Copy for WeightedForcedWalk
impl StructuralPartialEq for WeightedForcedWalk
Auto Trait Implementations§
impl Freeze for WeightedForcedWalk
impl RefUnwindSafe for WeightedForcedWalk
impl Send for WeightedForcedWalk
impl Sync for WeightedForcedWalk
impl Unpin for WeightedForcedWalk
impl UnwindSafe for WeightedForcedWalk
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