pub struct TemporalPath {
pub nodes: Vec<usize>,
pub times: Vec<f64>,
pub edge_times: Vec<f64>,
pub total_duration: f64,
pub n_hops: usize,
}Expand description
A temporal path: a sequence of time-stamped hops through a graph.
Fields§
§nodes: Vec<usize>Ordered list of node identifiers visited.
times: Vec<f64>Arrival time at each node.
edge_times: Vec<f64>Departure time of each traversed edge.
total_duration: f64Elapsed time between source departure and final arrival.
n_hops: usizeNumber of hops.
Implementations§
Source§impl TemporalPath
impl TemporalPath
Trait Implementations§
Source§impl Clone for TemporalPath
impl Clone for TemporalPath
Source§fn clone(&self) -> TemporalPath
fn clone(&self) -> TemporalPath
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for TemporalPath
impl RefUnwindSafe for TemporalPath
impl Send for TemporalPath
impl Sync for TemporalPath
impl Unpin for TemporalPath
impl UnsafeUnpin for TemporalPath
impl UnwindSafe for TemporalPath
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