#[repr(u32)]pub enum Wear {
FactoryNew,
MinimalWear,
FieldTested,
WellWorn,
BattleScarred,
}Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Wear
impl<'de> Deserialize<'de> for Wear
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Wear
impl Ord for Wear
source§impl PartialEq<Wear> for Wear
impl PartialEq<Wear> for Wear
source§impl PartialOrd<Wear> for Wear
impl PartialOrd<Wear> for Wear
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl TryFrom<u32> for Wear
impl TryFrom<u32> for Wear
§type Error = TryFromPrimitiveError<Wear>
type Error = TryFromPrimitiveError<Wear>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Wear
impl TryFromPrimitive for Wear
impl Copy for Wear
impl Eq for Wear
impl StructuralEq for Wear
impl StructuralPartialEq for Wear
Auto Trait Implementations§
impl RefUnwindSafe for Wear
impl Send for Wear
impl Sync for Wear
impl Unpin for Wear
impl UnwindSafe for Wear
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