pub struct DirectionChange {
pub stop_place_ref: Box<StopPlaceRef>,
pub stop_place_name: String,
}Expand description
DirectionChange : A StopPlace where the direction of a train changes
Fields§
§stop_place_ref: Box<StopPlaceRef>§stop_place_name: StringName of the station where the direction changes
Implementations§
Source§impl DirectionChange
impl DirectionChange
Sourcepub fn new(
stop_place_ref: StopPlaceRef,
stop_place_name: String,
) -> DirectionChange
pub fn new( stop_place_ref: StopPlaceRef, stop_place_name: String, ) -> DirectionChange
A StopPlace where the direction of a train changes
Trait Implementations§
Source§impl Clone for DirectionChange
impl Clone for DirectionChange
Source§fn clone(&self) -> DirectionChange
fn clone(&self) -> DirectionChange
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 moreSource§impl Debug for DirectionChange
impl Debug for DirectionChange
Source§impl Default for DirectionChange
impl Default for DirectionChange
Source§fn default() -> DirectionChange
fn default() -> DirectionChange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectionChange
impl<'de> Deserialize<'de> for DirectionChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DirectionChange
impl PartialEq for DirectionChange
Source§impl Serialize for DirectionChange
impl Serialize for DirectionChange
impl StructuralPartialEq for DirectionChange
Auto Trait Implementations§
impl Freeze for DirectionChange
impl RefUnwindSafe for DirectionChange
impl Send for DirectionChange
impl Sync for DirectionChange
impl Unpin for DirectionChange
impl UnwindSafe for DirectionChange
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