pub struct ParetoRoute {
pub path: Vec<usize>,
pub edges: Vec<usize>,
pub cost: f64,
pub resource: f64,
}Expand description
A Pareto-optimal route found by pareto_paths. edges holds the
input-order indices of the edges actually traversed, so callers can
recover attributes/geometry exactly even across parallel edges.
Fields§
§path: Vec<usize>§edges: Vec<usize>§cost: f64§resource: f64Auto Trait Implementations§
impl Freeze for ParetoRoute
impl RefUnwindSafe for ParetoRoute
impl Send for ParetoRoute
impl Sync for ParetoRoute
impl Unpin for ParetoRoute
impl UnsafeUnpin for ParetoRoute
impl UnwindSafe for ParetoRoute
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