pub struct SetSpeedTrainSimBuilder {
pub loco_con: Consist,
pub n_cars_by_type: HashMap<String, u32>,
pub state: TrainState,
pub speed_trace: SpeedTrace,
pub train_res: TrainRes,
pub path_tpc: PathTpc,
pub save_interval: Option<usize>,
pub temp_trace: Option<TemperatureTrace>,
}Fields§
§loco_con: Consist§n_cars_by_type: HashMap<String, u32>Number of railcars by type on the train
state: TrainState§speed_trace: SpeedTrace§train_res: TrainRes§path_tpc: PathTpc§save_interval: Option<usize>§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<SetSpeedTrainSimBuilder> for SetSpeedTrainSim
impl From<SetSpeedTrainSimBuilder> for SetSpeedTrainSim
Source§fn from(value: SetSpeedTrainSimBuilder) -> Self
fn from(value: SetSpeedTrainSimBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetSpeedTrainSimBuilder
impl RefUnwindSafe for SetSpeedTrainSimBuilder
impl Send for SetSpeedTrainSimBuilder
impl Sync for SetSpeedTrainSimBuilder
impl Unpin for SetSpeedTrainSimBuilder
impl UnwindSafe for SetSpeedTrainSimBuilder
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