pub struct StationTimes { /* private fields */ }Expand description
Station times class, used by the LaTeX generator methods.
This class holds time table information used in the code that generates the LaTeX tables. Each StationTimes item contains one table element in the form of an arrival time and a departure time. The flag member indicates if only the arrival time, departure time, or both times are valid. An originating train has no arrival time and a terminating train has no departure time.
This class is actually used to hold the information for a single cell in a formatted time table. Each cell contains an arrivial time and a departure time. Each row in the table contains the information for a specific station and each column contains the information for a single train.
Implementations§
Source§impl StationTimes
impl StationTimes
Sourcepub fn new(a: f64, d: f64, f: StopFlagType) -> Self
pub fn new(a: f64, d: f64, f: StopFlagType) -> Self
Constructor: create an entry for a time table cell.
§Parameters:
- a The arrival time.
- d The departure time.
- f The stop flag: Origin, Terminate, or Transit.
Sourcepub fn Flag(&self) -> StopFlagType
pub fn Flag(&self) -> StopFlagType
Accessor for the type of stop flag.
Trait Implementations§
Source§impl Clone for StationTimes
impl Clone for StationTimes
Source§fn clone(&self) -> StationTimes
fn clone(&self) -> StationTimes
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more