#[repr(u32)]pub enum Rarity {
Civilian,
Freelance,
Mercenary,
Commando,
Assassin,
Elite,
}Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Rarity
impl<'de> Deserialize<'de> for Rarity
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 Rarity
impl Ord for Rarity
source§impl PartialEq<Rarity> for Rarity
impl PartialEq<Rarity> for Rarity
source§impl PartialOrd<Rarity> for Rarity
impl PartialOrd<Rarity> for Rarity
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 Rarity
impl TryFrom<u32> for Rarity
§type Error = TryFromPrimitiveError<Rarity>
type Error = TryFromPrimitiveError<Rarity>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Rarity
impl TryFromPrimitive for Rarity
impl Copy for Rarity
impl Eq for Rarity
impl StructuralEq for Rarity
impl StructuralPartialEq for Rarity
Auto Trait Implementations§
impl RefUnwindSafe for Rarity
impl Send for Rarity
impl Sync for Rarity
impl Unpin for Rarity
impl UnwindSafe for Rarity
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