pub struct NavProgress {
pub distance_done_m: f64,
pub distance_left_m: f64,
pub fraction: f64,
pub next_index: usize,
}Expand description
Navigation progress along a route.
Fields§
§distance_done_m: f64Distance already covered in meters.
distance_left_m: f64Distance remaining in meters.
fraction: f64Fraction completed in [0, 1].
next_index: usizeIndex of the next route point ahead.
Trait Implementations§
Auto Trait Implementations§
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