pub enum Coupling {
Front,
Rear,
}Expand description
Kupplungsrichtung zwischen Fahrzeugen in einem Zug.
Coupling direction between vehicles in a train.
Variants§
Front
Kupplung zum vorderen Fahrzeug.
The coupling to the front vehicle.
Rear
Kupplung zum hinteren Fahrzeug.
The coupling to the rear vehicle.
Implementations§
Source§impl Coupling
impl Coupling
Sourcepub fn is_open(&self, bus: &str) -> bool
pub fn is_open(&self, bus: &str) -> bool
Gibt true zurück, wenn der angegebene Bus geöffnet ist.
Returns true if the given bus is open.
Sourcepub fn is_coupled(&self) -> bool
pub fn is_coupled(&self) -> bool
Gibt true zurück, wenn an dieser Kupplung ein Fahrzeug gekoppelt ist.
Returns true if a vehicle is coupled at this coupling.
Trait Implementations§
impl Copy for Coupling
Source§impl<'de> Deserialize<'de> for Coupling
impl<'de> Deserialize<'de> for Coupling
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Coupling, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Coupling, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Coupling
Source§impl Serialize for Coupling
impl Serialize for Coupling
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Coupling
Auto Trait Implementations§
impl Freeze for Coupling
impl RefUnwindSafe for Coupling
impl Send for Coupling
impl Sync for Coupling
impl Unpin for Coupling
impl UnsafeUnpin for Coupling
impl UnwindSafe for Coupling
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