Enum lotus_script::vehicle::SurfaceType
source · #[repr(u8)]pub enum SurfaceType {
Gravel = 0,
Street = 1,
Grass = 2,
}
Expand description
Type of the surface under the given axis.
Variants§
Trait Implementations§
source§impl Clone for SurfaceType
impl Clone for SurfaceType
source§fn clone(&self) -> SurfaceType
fn clone(&self) -> SurfaceType
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 SurfaceType
impl Debug for SurfaceType
source§impl<'de> Deserialize<'de> for SurfaceType
impl<'de> Deserialize<'de> for SurfaceType
source§fn deserialize<D>(
deserializer: D
) -> Result<SurfaceType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<SurfaceType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SurfaceType
impl Hash for SurfaceType
source§impl PartialEq for SurfaceType
impl PartialEq for SurfaceType
source§fn eq(&self, other: &SurfaceType) -> bool
fn eq(&self, other: &SurfaceType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SurfaceType
impl Serialize for SurfaceType
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 SurfaceType
impl TryFrom<u32> for SurfaceType
§type Error = VehicleError
type Error = VehicleError
The type returned in the event of a conversion error.
source§fn try_from(
value: u32
) -> Result<SurfaceType, <SurfaceType as TryFrom<u32>>::Error>
fn try_from( value: u32 ) -> Result<SurfaceType, <SurfaceType as TryFrom<u32>>::Error>
Performs the conversion.
impl Copy for SurfaceType
impl Eq for SurfaceType
impl StructuralPartialEq for SurfaceType
Auto Trait Implementations§
impl Freeze for SurfaceType
impl RefUnwindSafe for SurfaceType
impl Send for SurfaceType
impl Sync for SurfaceType
impl Unpin for SurfaceType
impl UnwindSafe for SurfaceType
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