Struct AllowedClass

Source
pub struct AllowedClass { /* private fields */ }
Available on crate feature wrath only.
Expand description

Auto generated from the original wowm in file wow_message_parser/wowm/world/enums/allowed_races.wowm:88:

flag AllowedClass : u32 {
    ALL = 0;
    WARRIOR = 1;
    PALADIN = 2;
    HUNTER = 4;
    ROGUE = 8;
    PRIEST = 16;
    DEATH_KNIGHT = 32;
    SHAMAN = 64;
    MAGE = 128;
    WARLOCK = 256;
    DRUID = 1024;
}

Implementations§

Source§

impl AllowedClass

Source

pub const ALL: u32 = 0u32

Source

pub const WARRIOR: u32 = 1u32

Source

pub const PALADIN: u32 = 2u32

Source

pub const HUNTER: u32 = 4u32

Source

pub const ROGUE: u32 = 8u32

Source

pub const PRIEST: u32 = 16u32

Source

pub const DEATH_KNIGHT: u32 = 32u32

Source

pub const SHAMAN: u32 = 64u32

Source

pub const MAGE: u32 = 128u32

Source

pub const WARLOCK: u32 = 256u32

Source

pub const DRUID: u32 = 1_024u32

Source

pub const fn new(inner: u32) -> AllowedClass

Source

pub const fn empty() -> AllowedClass

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn all() -> AllowedClass

Source

pub const fn is_warrior(&self) -> bool

Source

pub const fn new_warrior() -> AllowedClass

Source

pub fn set_warrior(&mut self) -> AllowedClass

Source

pub fn clear_warrior(&mut self) -> AllowedClass

Source

pub const fn is_paladin(&self) -> bool

Source

pub const fn new_paladin() -> AllowedClass

Source

pub fn set_paladin(&mut self) -> AllowedClass

Source

pub fn clear_paladin(&mut self) -> AllowedClass

Source

pub const fn is_hunter(&self) -> bool

Source

pub const fn new_hunter() -> AllowedClass

Source

pub fn set_hunter(&mut self) -> AllowedClass

Source

pub fn clear_hunter(&mut self) -> AllowedClass

Source

pub const fn is_rogue(&self) -> bool

Source

pub const fn new_rogue() -> AllowedClass

Source

pub fn set_rogue(&mut self) -> AllowedClass

Source

pub fn clear_rogue(&mut self) -> AllowedClass

Source

pub const fn is_priest(&self) -> bool

Source

pub const fn new_priest() -> AllowedClass

Source

pub fn set_priest(&mut self) -> AllowedClass

Source

pub fn clear_priest(&mut self) -> AllowedClass

Source

pub const fn is_death_knight(&self) -> bool

Source

pub const fn new_death_knight() -> AllowedClass

Source

pub fn set_death_knight(&mut self) -> AllowedClass

Source

pub fn clear_death_knight(&mut self) -> AllowedClass

Source

pub const fn is_shaman(&self) -> bool

Source

pub const fn new_shaman() -> AllowedClass

Source

pub fn set_shaman(&mut self) -> AllowedClass

Source

pub fn clear_shaman(&mut self) -> AllowedClass

Source

pub const fn is_mage(&self) -> bool

Source

pub const fn new_mage() -> AllowedClass

Source

pub fn set_mage(&mut self) -> AllowedClass

Source

pub fn clear_mage(&mut self) -> AllowedClass

Source

pub const fn is_warlock(&self) -> bool

Source

pub const fn new_warlock() -> AllowedClass

Source

pub fn set_warlock(&mut self) -> AllowedClass

Source

pub fn clear_warlock(&mut self) -> AllowedClass

Source

pub const fn is_druid(&self) -> bool

Source

pub const fn new_druid() -> AllowedClass

Source

pub fn set_druid(&mut self) -> AllowedClass

Source

pub fn clear_druid(&mut self) -> AllowedClass

Source

pub const fn as_int(&self) -> u32

Trait Implementations§

Source§

impl Binary for AllowedClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl BitAnd for AllowedClass

Source§

type Output = AllowedClass

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: AllowedClass) -> <AllowedClass as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAndAssign for AllowedClass

Source§

fn bitand_assign(&mut self, rhs: AllowedClass)

Performs the &= operation. Read more
Source§

impl BitOr for AllowedClass

Source§

type Output = AllowedClass

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: AllowedClass) -> <AllowedClass as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for AllowedClass

Source§

fn bitor_assign(&mut self, rhs: AllowedClass)

Performs the |= operation. Read more
Source§

impl BitXor for AllowedClass

Source§

type Output = AllowedClass

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: AllowedClass) -> <AllowedClass as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign for AllowedClass

Source§

fn bitxor_assign(&mut self, rhs: AllowedClass)

Performs the ^= operation. Read more
Source§

impl Clone for AllowedClass

Source§

fn clone(&self) -> AllowedClass

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AllowedClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for AllowedClass

Source§

fn default() -> AllowedClass

Returns the “default value” for a type. Read more
Source§

impl From<i32> for AllowedClass

Source§

fn from(value: i32) -> AllowedClass

Converts to this type from the input type.
Source§

impl From<u16> for AllowedClass

Source§

fn from(value: u16) -> AllowedClass

Converts to this type from the input type.
Source§

impl From<u32> for AllowedClass

Source§

fn from(value: u32) -> AllowedClass

Converts to this type from the input type.
Source§

impl From<u8> for AllowedClass

Source§

fn from(value: u8) -> AllowedClass

Converts to this type from the input type.
Source§

impl Hash for AllowedClass

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for AllowedClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Octal for AllowedClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Ord for AllowedClass

Source§

fn cmp(&self, other: &AllowedClass) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for AllowedClass

Source§

fn eq(&self, other: &AllowedClass) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for AllowedClass

Source§

fn partial_cmp(&self, other: &AllowedClass) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryFrom<i16> for AllowedClass

Source§

type Error = i16

The type returned in the event of a conversion error.
Source§

fn try_from( value: i16, ) -> Result<AllowedClass, <AllowedClass as TryFrom<i16>>::Error>

Performs the conversion.
Source§

impl TryFrom<i64> for AllowedClass

Source§

type Error = i64

The type returned in the event of a conversion error.
Source§

fn try_from( value: i64, ) -> Result<AllowedClass, <AllowedClass as TryFrom<i64>>::Error>

Performs the conversion.
Source§

impl TryFrom<i8> for AllowedClass

Source§

type Error = i8

The type returned in the event of a conversion error.
Source§

fn try_from( value: i8, ) -> Result<AllowedClass, <AllowedClass as TryFrom<i8>>::Error>

Performs the conversion.
Source§

impl TryFrom<u64> for AllowedClass

Source§

type Error = u64

The type returned in the event of a conversion error.
Source§

fn try_from( value: u64, ) -> Result<AllowedClass, <AllowedClass as TryFrom<u64>>::Error>

Performs the conversion.
Source§

impl TryFrom<usize> for AllowedClass

Source§

type Error = usize

The type returned in the event of a conversion error.
Source§

fn try_from( value: usize, ) -> Result<AllowedClass, <AllowedClass as TryFrom<usize>>::Error>

Performs the conversion.
Source§

impl UpperHex for AllowedClass

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Copy for AllowedClass

Source§

impl Eq for AllowedClass

Source§

impl StructuralPartialEq for AllowedClass

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.