Enum lotus_script::vehicle::RailQuality
#[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§
§impl Clone for RailQuality
impl Clone for RailQuality
§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 more§impl Debug for RailQuality
impl Debug for RailQuality
§impl<'de> Deserialize<'de> for RailQuality
impl<'de> Deserialize<'de> for RailQuality
§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 Hash for RailQuality
impl Hash for RailQuality
§impl PartialEq for RailQuality
impl PartialEq for RailQuality
§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 ==
.§impl Serialize for RailQuality
impl Serialize for RailQuality
§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 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.
§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