pub struct SpeedLimitTrainSimBuilder {Show 13 fields
pub train_id: String,
pub origs: Vec<Location>,
pub dests: Vec<Location>,
pub loco_con: Consist,
pub n_cars_by_type: HashMap<String, u32>,
pub state: TrainState,
pub train_res: TrainRes,
pub path_tpc: PathTpc,
pub fric_brake: FricBrake,
pub save_interval: Option<usize>,
pub simulation_days: Option<i32>,
pub scenario_year: Option<i32>,
pub temp_trace: Option<TemperatureTrace>,
}Fields§
§train_id: String§origs: Vec<Location>§dests: Vec<Location>§loco_con: Consist§n_cars_by_type: HashMap<String, u32>Number of railcars by type on the train
state: TrainState§train_res: TrainRes§path_tpc: PathTpc§fric_brake: FricBrake§save_interval: Option<usize>§simulation_days: Option<i32>§scenario_year: Option<i32>§temp_trace: Option<TemperatureTrace>Time-dependent temperature at sea level that can be corrected for altitude using a standard model
Trait Implementations§
Source§impl From<SpeedLimitTrainSimBuilder> for SpeedLimitTrainSim
impl From<SpeedLimitTrainSimBuilder> for SpeedLimitTrainSim
Source§fn from(value: SpeedLimitTrainSimBuilder) -> Self
fn from(value: SpeedLimitTrainSimBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpeedLimitTrainSimBuilder
impl RefUnwindSafe for SpeedLimitTrainSimBuilder
impl Send for SpeedLimitTrainSimBuilder
impl Sync for SpeedLimitTrainSimBuilder
impl Unpin for SpeedLimitTrainSimBuilder
impl UnwindSafe for SpeedLimitTrainSimBuilder
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> 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