pub struct AllowedClass { /* private fields */ }Available on crate feature
tbc only.Expand description
Auto generated from the original wowm in file wow_message_parser/wowm/world/enums/allowed_races.wowm:72:
flag AllowedClass : u32 {
ALL = 0;
WARRIOR = 1;
PALADIN = 2;
HUNTER = 4;
ROGUE = 8;
PRIEST = 16;
SHAMAN = 64;
MAGE = 128;
WARLOCK = 256;
DRUID = 1024;
}Implementations§
Source§impl AllowedClass
impl AllowedClass
pub const ALL: u32 = 0u32
pub const WARRIOR: u32 = 1u32
pub const PALADIN: u32 = 2u32
pub const HUNTER: u32 = 4u32
pub const ROGUE: u32 = 8u32
pub const PRIEST: u32 = 16u32
pub const SHAMAN: u32 = 64u32
pub const MAGE: u32 = 128u32
pub const WARLOCK: u32 = 256u32
pub const DRUID: u32 = 1_024u32
pub const fn new(inner: u32) -> AllowedClass
pub const fn empty() -> AllowedClass
pub const fn is_empty(&self) -> bool
pub const fn all() -> AllowedClass
pub const fn is_warrior(&self) -> bool
pub const fn new_warrior() -> AllowedClass
pub fn set_warrior(&mut self) -> AllowedClass
pub fn clear_warrior(&mut self) -> AllowedClass
pub const fn is_paladin(&self) -> bool
pub const fn new_paladin() -> AllowedClass
pub fn set_paladin(&mut self) -> AllowedClass
pub fn clear_paladin(&mut self) -> AllowedClass
pub const fn is_hunter(&self) -> bool
pub const fn new_hunter() -> AllowedClass
pub fn set_hunter(&mut self) -> AllowedClass
pub fn clear_hunter(&mut self) -> AllowedClass
pub const fn is_rogue(&self) -> bool
pub const fn new_rogue() -> AllowedClass
pub fn set_rogue(&mut self) -> AllowedClass
pub fn clear_rogue(&mut self) -> AllowedClass
pub const fn is_priest(&self) -> bool
pub const fn new_priest() -> AllowedClass
pub fn set_priest(&mut self) -> AllowedClass
pub fn clear_priest(&mut self) -> AllowedClass
pub const fn is_shaman(&self) -> bool
pub const fn new_shaman() -> AllowedClass
pub fn set_shaman(&mut self) -> AllowedClass
pub fn clear_shaman(&mut self) -> AllowedClass
pub const fn is_mage(&self) -> bool
pub const fn new_mage() -> AllowedClass
pub fn set_mage(&mut self) -> AllowedClass
pub fn clear_mage(&mut self) -> AllowedClass
pub const fn is_warlock(&self) -> bool
pub const fn new_warlock() -> AllowedClass
pub fn set_warlock(&mut self) -> AllowedClass
pub fn clear_warlock(&mut self) -> AllowedClass
pub const fn is_druid(&self) -> bool
pub const fn new_druid() -> AllowedClass
pub fn set_druid(&mut self) -> AllowedClass
pub fn clear_druid(&mut self) -> AllowedClass
pub const fn as_int(&self) -> u32
Trait Implementations§
Source§impl Binary for AllowedClass
impl Binary for AllowedClass
Source§impl BitAnd for AllowedClass
impl BitAnd for AllowedClass
Source§type Output = AllowedClass
type Output = AllowedClass
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: AllowedClass) -> <AllowedClass as BitAnd>::Output
fn bitand(self, rhs: AllowedClass) -> <AllowedClass as BitAnd>::Output
Performs the
& operation. Read moreSource§impl BitAndAssign for AllowedClass
impl BitAndAssign for AllowedClass
Source§fn bitand_assign(&mut self, rhs: AllowedClass)
fn bitand_assign(&mut self, rhs: AllowedClass)
Performs the
&= operation. Read moreSource§impl BitOr for AllowedClass
impl BitOr for AllowedClass
Source§type Output = AllowedClass
type Output = AllowedClass
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: AllowedClass) -> <AllowedClass as BitOr>::Output
fn bitor(self, rhs: AllowedClass) -> <AllowedClass as BitOr>::Output
Performs the
| operation. Read moreSource§impl BitOrAssign for AllowedClass
impl BitOrAssign for AllowedClass
Source§fn bitor_assign(&mut self, rhs: AllowedClass)
fn bitor_assign(&mut self, rhs: AllowedClass)
Performs the
|= operation. Read moreSource§impl BitXor for AllowedClass
impl BitXor for AllowedClass
Source§type Output = AllowedClass
type Output = AllowedClass
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: AllowedClass) -> <AllowedClass as BitXor>::Output
fn bitxor(self, rhs: AllowedClass) -> <AllowedClass as BitXor>::Output
Performs the
^ operation. Read moreSource§impl BitXorAssign for AllowedClass
impl BitXorAssign for AllowedClass
Source§fn bitxor_assign(&mut self, rhs: AllowedClass)
fn bitxor_assign(&mut self, rhs: AllowedClass)
Performs the
^= operation. Read moreSource§impl Clone for AllowedClass
impl Clone for AllowedClass
Source§fn clone(&self) -> AllowedClass
fn clone(&self) -> AllowedClass
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowedClass
impl Debug for AllowedClass
Source§impl Default for AllowedClass
impl Default for AllowedClass
Source§fn default() -> AllowedClass
fn default() -> AllowedClass
Returns the “default value” for a type. Read more
Source§impl From<i32> for AllowedClass
impl From<i32> for AllowedClass
Source§fn from(value: i32) -> AllowedClass
fn from(value: i32) -> AllowedClass
Converts to this type from the input type.
Source§impl From<u16> for AllowedClass
impl From<u16> for AllowedClass
Source§fn from(value: u16) -> AllowedClass
fn from(value: u16) -> AllowedClass
Converts to this type from the input type.
Source§impl From<u32> for AllowedClass
impl From<u32> for AllowedClass
Source§fn from(value: u32) -> AllowedClass
fn from(value: u32) -> AllowedClass
Converts to this type from the input type.
Source§impl From<u8> for AllowedClass
impl From<u8> for AllowedClass
Source§fn from(value: u8) -> AllowedClass
fn from(value: u8) -> AllowedClass
Converts to this type from the input type.
Source§impl Hash for AllowedClass
impl Hash for AllowedClass
Source§impl LowerHex for AllowedClass
impl LowerHex for AllowedClass
Source§impl Octal for AllowedClass
impl Octal for AllowedClass
Source§impl Ord for AllowedClass
impl Ord for AllowedClass
Source§fn cmp(&self, other: &AllowedClass) -> Ordering
fn cmp(&self, other: &AllowedClass) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AllowedClass
impl PartialEq for AllowedClass
Source§impl PartialOrd for AllowedClass
impl PartialOrd for AllowedClass
Source§impl TryFrom<i16> for AllowedClass
impl TryFrom<i16> for AllowedClass
Source§impl TryFrom<i64> for AllowedClass
impl TryFrom<i64> for AllowedClass
Source§impl TryFrom<i8> for AllowedClass
impl TryFrom<i8> for AllowedClass
Source§impl TryFrom<u64> for AllowedClass
impl TryFrom<u64> for AllowedClass
Source§impl TryFrom<usize> for AllowedClass
impl TryFrom<usize> for AllowedClass
Source§impl UpperHex for AllowedClass
impl UpperHex for AllowedClass
impl Copy for AllowedClass
impl Eq for AllowedClass
impl StructuralPartialEq for AllowedClass
Auto Trait Implementations§
impl Freeze for AllowedClass
impl RefUnwindSafe for AllowedClass
impl Send for AllowedClass
impl Sync for AllowedClass
impl Unpin for AllowedClass
impl UnwindSafe for AllowedClass
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