#[repr(u8)]pub enum Class {
Other = 0,
Scout = 1,
Sniper = 2,
Soldier = 3,
Demoman = 4,
Medic = 5,
Heavy = 6,
Pyro = 7,
Spy = 8,
Engineer = 9,
}
Variants§
Other = 0
Scout = 1
Sniper = 2
Soldier = 3
Demoman = 4
Medic = 5
Heavy = 6
Pyro = 7
Spy = 8
Engineer = 9
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Class
impl<'de> Deserialize<'de> for Class
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 PartialEq for Class
impl PartialEq for Class
source§impl TryFrom<u8> for Class
impl TryFrom<u8> for Class
§type Error = TryFromPrimitiveError<Class>
type Error = TryFromPrimitiveError<Class>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Class
impl TryFromPrimitive for Class
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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