pub struct ChannelFlags { /* private fields */ }Available on crate feature
vanilla and (crate features shared or vanilla or tbc or wrath) only.Expand description
Auto generated from the original wowm in file wow_message_parser/wowm/world/chat/smsg_channel_list.wowm:3:
flag ChannelFlags : u8 {
NONE = 0x00;
CUSTOM = 0x01;
TRADE = 0x04;
NOT_LFG = 0x08;
GENERAL = 0x10;
CITY = 0x20;
LFG = 0x40;
VOICE = 0x80;
}Implementations§
Source§impl ChannelFlags
impl ChannelFlags
pub fn as_test_case_value(&self) -> String
Available on crate feature
print-testcase only.Source§impl ChannelFlags
impl ChannelFlags
pub const NONE: u8 = 0u8
pub const CUSTOM: u8 = 1u8
pub const TRADE: u8 = 4u8
pub const NOT_LFG: u8 = 8u8
pub const GENERAL: u8 = 16u8
pub const CITY: u8 = 32u8
pub const LFG: u8 = 64u8
pub const VOICE: u8 = 128u8
pub const fn new(inner: u8) -> Self
pub const fn empty() -> Self
pub const fn is_empty(&self) -> bool
pub const fn all() -> Self
pub const fn is_custom(&self) -> bool
pub const fn new_custom() -> Self
pub fn set_custom(&mut self) -> Self
pub fn clear_custom(&mut self) -> Self
pub const fn is_trade(&self) -> bool
pub const fn new_trade() -> Self
pub fn set_trade(&mut self) -> Self
pub fn clear_trade(&mut self) -> Self
pub const fn is_not_lfg(&self) -> bool
pub const fn new_not_lfg() -> Self
pub fn set_not_lfg(&mut self) -> Self
pub fn clear_not_lfg(&mut self) -> Self
pub const fn is_general(&self) -> bool
pub const fn new_general() -> Self
pub fn set_general(&mut self) -> Self
pub fn clear_general(&mut self) -> Self
pub const fn is_city(&self) -> bool
pub const fn new_city() -> Self
pub fn set_city(&mut self) -> Self
pub fn clear_city(&mut self) -> Self
pub const fn is_lfg(&self) -> bool
pub const fn new_lfg() -> Self
pub fn set_lfg(&mut self) -> Self
pub fn clear_lfg(&mut self) -> Self
pub const fn is_voice(&self) -> bool
pub const fn new_voice() -> Self
pub fn set_voice(&mut self) -> Self
pub fn clear_voice(&mut self) -> Self
pub const fn as_int(&self) -> u8
Trait Implementations§
Source§impl Binary for ChannelFlags
impl Binary for ChannelFlags
Source§impl BitAnd for ChannelFlags
impl BitAnd for ChannelFlags
Source§impl BitAndAssign for ChannelFlags
impl BitAndAssign for ChannelFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for ChannelFlags
impl BitOr for ChannelFlags
Source§impl BitOrAssign for ChannelFlags
impl BitOrAssign for ChannelFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for ChannelFlags
impl BitXor for ChannelFlags
Source§impl BitXorAssign for ChannelFlags
impl BitXorAssign for ChannelFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for ChannelFlags
impl Clone for ChannelFlags
Source§fn clone(&self) -> ChannelFlags
fn clone(&self) -> ChannelFlags
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 ChannelFlags
impl Debug for ChannelFlags
Source§impl Default for ChannelFlags
impl Default for ChannelFlags
Source§fn default() -> ChannelFlags
fn default() -> ChannelFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelFlags
impl<'de> Deserialize<'de> for ChannelFlags
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<i8> for ChannelFlags
impl From<i8> for ChannelFlags
Source§impl From<u8> for ChannelFlags
impl From<u8> for ChannelFlags
Source§impl Hash for ChannelFlags
impl Hash for ChannelFlags
Source§impl LowerHex for ChannelFlags
impl LowerHex for ChannelFlags
Source§impl Octal for ChannelFlags
impl Octal for ChannelFlags
Source§impl Ord for ChannelFlags
impl Ord for ChannelFlags
Source§fn cmp(&self, other: &ChannelFlags) -> Ordering
fn cmp(&self, other: &ChannelFlags) -> 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 ChannelFlags
impl PartialEq for ChannelFlags
Source§impl PartialOrd for ChannelFlags
impl PartialOrd for ChannelFlags
Source§impl Serialize for ChannelFlags
impl Serialize for ChannelFlags
Source§impl TryFrom<i16> for ChannelFlags
impl TryFrom<i16> for ChannelFlags
Source§impl TryFrom<i32> for ChannelFlags
impl TryFrom<i32> for ChannelFlags
Source§impl TryFrom<i64> for ChannelFlags
impl TryFrom<i64> for ChannelFlags
Source§impl TryFrom<u16> for ChannelFlags
impl TryFrom<u16> for ChannelFlags
Source§impl TryFrom<u32> for ChannelFlags
impl TryFrom<u32> for ChannelFlags
Source§impl TryFrom<u64> for ChannelFlags
impl TryFrom<u64> for ChannelFlags
Source§impl TryFrom<usize> for ChannelFlags
impl TryFrom<usize> for ChannelFlags
Source§impl UpperHex for ChannelFlags
impl UpperHex for ChannelFlags
impl Copy for ChannelFlags
impl Eq for ChannelFlags
impl StructuralPartialEq for ChannelFlags
Auto Trait Implementations§
impl Freeze for ChannelFlags
impl RefUnwindSafe for ChannelFlags
impl Send for ChannelFlags
impl Sync for ChannelFlags
impl Unpin for ChannelFlags
impl UnwindSafe for ChannelFlags
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