Enum lotus_script::vehicle::RailQuality
source · #[repr(u8)]pub enum RailQuality {
Smooth = 0,
Rough = 1,
FroggySmooth = 2,
FroggyRough = 3,
FlatGroove = 4,
HighSpeedSmooth = 5,
SmoothDirt = 6,
RoughDirt = 7,
}
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
Trait Implementations§
source§impl Clone for RailQuality
impl Clone for RailQuality
source§fn clone(&self) -> RailQuality
fn clone(&self) -> RailQuality
Returns a copy 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 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
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
This method 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
source§impl TryFrom<u32> for RailQuality
impl TryFrom<u32> for RailQuality
§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.
impl Copy for RailQuality
impl Eq for RailQuality
impl StructuralPartialEq for RailQuality
Auto Trait Implementations§
impl Freeze for RailQuality
impl RefUnwindSafe for RailQuality
impl Send for RailQuality
impl Sync for RailQuality
impl Unpin 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