#[repr(u32)]pub enum Wear {
FactoryNew = 1,
MinimalWear = 2,
FieldTested = 3,
WellWorn = 4,
BattleScarred = 5,
}
Expand description
Wear.
Variants§
Implementations§
Trait Implementations§
Source§impl Attribute for Wear
impl Attribute for Wear
Source§const ATTRIBUTE: AttributeDef
const ATTRIBUTE: AttributeDef
Represents the “set_item_texture_wear” attribute.
Source§fn attribute_float_value(&self) -> Option<f32>
fn attribute_float_value(&self) -> Option<f32>
Gets the attribute float value.
Source§const USES_FLOAT_VALUE: bool = true
const USES_FLOAT_VALUE: bool = true
Not part of the schema. Read more
Source§fn attribute_value(&self) -> AttributeValue
fn attribute_value(&self) -> AttributeValue
Gets the attribute value.
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 From<Wear> for ItemAttribute
impl From<Wear> for ItemAttribute
Source§impl Ord for Wear
impl Ord for Wear
Source§impl PartialOrd for Wear
impl PartialOrd for Wear
Source§impl TryFromIntAttributeValue for Wear
impl TryFromIntAttributeValue for Wear
Source§fn try_from_attribute_float_value(v: f32) -> Option<Self>
fn try_from_attribute_float_value(v: f32) -> Option<Self>
Attempts conversion from an attribute float value.
Source§fn try_from_attribute_value(v: AttributeValue) -> Option<Self>
fn try_from_attribute_value(v: AttributeValue) -> Option<Self>
Attempts conversion from an attribute value.
Source§impl TryFromPrimitive for Wear
impl TryFromPrimitive for Wear
impl Copy for Wear
impl Eq for Wear
impl StructuralPartialEq for Wear
Auto Trait Implementations§
impl Freeze for Wear
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