pub struct TrainPathFinderConstants {
pub signal_reserved_by_circuit_network_penalty: u32,
pub stopped_manually_controlled_train_penalty: u32,
pub stopped_manually_controlled_train_without_passenger_penalty: u32,
pub train_arriving_to_signal_penalty: u32,
pub train_arriving_to_station_penalty: u32,
pub train_auto_without_schedule_penalty: u32,
pub train_in_station_penalty: u32,
pub train_in_station_with_no_other_valid_stops_in_schedule: u32,
pub train_stop_penalty: u32,
pub train_waiting_at_signal_penalty: u32,
pub train_waiting_at_signal_tick_multiplier_penalty: f32,
pub train_with_no_path_penalty: u32,
}Fields§
§signal_reserved_by_circuit_network_penalty: u32§stopped_manually_controlled_train_penalty: u32§stopped_manually_controlled_train_without_passenger_penalty: u32§train_arriving_to_signal_penalty: u32§train_arriving_to_station_penalty: u32§train_auto_without_schedule_penalty: u32§train_in_station_penalty: u32§train_in_station_with_no_other_valid_stops_in_schedule: u32§train_stop_penalty: u32§train_waiting_at_signal_penalty: u32§train_waiting_at_signal_tick_multiplier_penalty: f32§train_with_no_path_penalty: u32Trait Implementations§
Source§impl Clone for TrainPathFinderConstants
impl Clone for TrainPathFinderConstants
Source§fn clone(&self) -> TrainPathFinderConstants
fn clone(&self) -> TrainPathFinderConstants
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrainPathFinderConstants
Source§impl Debug for TrainPathFinderConstants
impl Debug for TrainPathFinderConstants
Source§impl Default for TrainPathFinderConstants
impl Default for TrainPathFinderConstants
Source§fn default() -> TrainPathFinderConstants
fn default() -> TrainPathFinderConstants
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrainPathFinderConstants
impl PartialEq for TrainPathFinderConstants
impl StructuralPartialEq for TrainPathFinderConstants
Auto Trait Implementations§
impl Freeze for TrainPathFinderConstants
impl RefUnwindSafe for TrainPathFinderConstants
impl Send for TrainPathFinderConstants
impl Sync for TrainPathFinderConstants
impl Unpin for TrainPathFinderConstants
impl UnsafeUnpin for TrainPathFinderConstants
impl UnwindSafe for TrainPathFinderConstants
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