Expand description
Commute information.
Fields
location: LocationA previous or next location.
distance: DistanceTravelled distance.
duration: DurationTravelled duration.
Implementations
sourceimpl CommuteInfo
impl CommuteInfo
sourcepub fn is_zero_distance(&self) -> bool
pub fn is_zero_distance(&self) -> bool
Checks whether there is no distance costs for part of commute.
Trait Implementations
sourceimpl Clone for CommuteInfo
impl Clone for CommuteInfo
sourcefn clone(&self) -> CommuteInfo
fn clone(&self) -> CommuteInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommuteInfo
impl Send for CommuteInfo
impl Sync for CommuteInfo
impl Unpin for CommuteInfo
impl UnwindSafe for CommuteInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more