#[repr(u8)]pub enum RailQuality {
Smooth = 0,
Rough = 1,
FroggySmooth = 2,
FroggyRough = 3,
FlatGroove = 4,
HighSpeedSmooth = 5,
SmoothDirt = 6,
RoughDirt = 7,
Deraileur = 8,
}Expand description
Provides the quality of the rails under the given axis.
Variants§
Smooth = 0
Rough = 1
FroggySmooth = 2
FroggyRough = 3
FlatGroove = 4
HighSpeedSmooth = 5
SmoothDirt = 6
RoughDirt = 7
Deraileur = 8
Trait Implementations§
Source§impl Clone for RailQuality
impl Clone for RailQuality
Source§fn clone(&self) -> RailQuality
fn clone(&self) -> RailQuality
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 RailQuality
Source§impl Debug for RailQuality
impl Debug for RailQuality
Source§impl<'de> Deserialize<'de> for RailQuality
impl<'de> Deserialize<'de> for RailQuality
Source§fn deserialize<D>(
deserializer: D,
) -> Result<RailQuality, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<RailQuality, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RailQuality
Source§impl Hash for RailQuality
impl Hash for RailQuality
Source§impl PartialEq for RailQuality
impl PartialEq for RailQuality
Source§fn eq(&self, other: &RailQuality) -> bool
fn eq(&self, other: &RailQuality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RailQuality
impl Serialize for RailQuality
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 RailQuality
Source§impl TryFrom<u32> for RailQuality
impl TryFrom<u32> for RailQuality
Source§type Error = VehicleError
type Error = VehicleError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u32,
) -> Result<RailQuality, <RailQuality as TryFrom<u32>>::Error>
fn try_from( value: u32, ) -> Result<RailQuality, <RailQuality as TryFrom<u32>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RailQuality
impl RefUnwindSafe for RailQuality
impl Send for RailQuality
impl Sync for RailQuality
impl Unpin for RailQuality
impl UnsafeUnpin for RailQuality
impl UnwindSafe for RailQuality
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