pub struct CommuteInfo {
pub location: Location,
pub distance: Distance,
pub duration: Duration,
}
Expand description
Commute information.
Fields§
§location: Location
A previous or next location.
distance: Distance
Travelled distance.
duration: Duration
Travelled duration.
Implementations§
Source§impl 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§
Source§impl Clone for CommuteInfo
impl Clone for CommuteInfo
Source§fn clone(&self) -> CommuteInfo
fn clone(&self) -> CommuteInfo
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 CommuteInfo
impl Debug for CommuteInfo
Auto Trait Implementations§
impl Freeze for CommuteInfo
impl RefUnwindSafe for CommuteInfo
impl Send for CommuteInfo
impl Sync for CommuteInfo
impl Unpin for CommuteInfo
impl UnwindSafe for CommuteInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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