Struct ItemFlag

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

Auto generated from the original wowm in file wow_message_parser/wowm/world/queries/smsg_item_query_single_response.wowm:612:

flag ItemFlag : u32 {
    NO_PICKUP = 0x00000001;
    CONJURED = 0x00000002;
    LOOTABLE = 0x00000004;
    DEPRECATED = 0x00000010;
    INDESTRUCTIBLE = 0x00000020;
    PLAYER_CAST = 0x00000040;
    NO_EQUIP_COOLDOWN = 0x00000080;
    INT_BONUS_INSTEAD = 0x00000100;
    WRAPPER = 0x00000200;
    IGNORE_BAG_SPACE = 0x00000400;
    PARTY_LOOT = 0x00000800;
    CHARTER = 0x00002000;
    LETTER = 0x00004000;
    NO_DISENCHANT = 0x00008000;
    REAL_DURATION = 0x00010000;
    NO_CREATOR = 0x00020000;
    PROSPECTABLE = 0x00040000;
    UNIQUE_EQUIPPED = 0x00080000;
    IGNORE_FOR_AURAS = 0x00100000;
    IGNORE_DEFAULT_ARENA_RESTRICTIONS = 0x00200000;
    NO_DURABILITY_LOSS = 0x00400000;
    SPECIAL_USE = 0x00800000;
}

Implementations§

Source§

impl ItemFlag

Source

pub const NO_PICKUP: u32 = 1u32

Source

pub const CONJURED: u32 = 2u32

Source

pub const LOOTABLE: u32 = 4u32

Source

pub const DEPRECATED: u32 = 16u32

Source

pub const INDESTRUCTIBLE: u32 = 32u32

Source

pub const PLAYER_CAST: u32 = 64u32

Source

pub const NO_EQUIP_COOLDOWN: u32 = 128u32

Source

pub const INT_BONUS_INSTEAD: u32 = 256u32

Source

pub const WRAPPER: u32 = 512u32

Source

pub const IGNORE_BAG_SPACE: u32 = 1_024u32

Source

pub const PARTY_LOOT: u32 = 2_048u32

Source

pub const CHARTER: u32 = 8_192u32

Source

pub const LETTER: u32 = 16_384u32

Source

pub const NO_DISENCHANT: u32 = 32_768u32

Source

pub const REAL_DURATION: u32 = 65_536u32

Source

pub const NO_CREATOR: u32 = 131_072u32

Source

pub const PROSPECTABLE: u32 = 262_144u32

Source

pub const UNIQUE_EQUIPPED: u32 = 524_288u32

Source

pub const IGNORE_FOR_AURAS: u32 = 1_048_576u32

Source

pub const IGNORE_DEFAULT_ARENA_RESTRICTIONS: u32 = 2_097_152u32

Source

pub const NO_DURABILITY_LOSS: u32 = 4_194_304u32

Source

pub const SPECIAL_USE: u32 = 8_388_608u32

Source

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

Source

pub const fn empty() -> ItemFlag

Source

pub const fn is_empty(&self) -> bool

Source

pub const fn all() -> ItemFlag

Source

pub const fn is_no_pickup(&self) -> bool

Source

pub const fn new_no_pickup() -> ItemFlag

not used

Source

pub fn set_no_pickup(&mut self) -> ItemFlag

Source

pub fn clear_no_pickup(&mut self) -> ItemFlag

Source

pub const fn is_conjured(&self) -> bool

Source

pub const fn new_conjured() -> ItemFlag

items created by spells with SPELL_EFFECT_CREATE_ITEM

Source

pub fn set_conjured(&mut self) -> ItemFlag

Source

pub fn clear_conjured(&mut self) -> ItemFlag

Source

pub const fn is_lootable(&self) -> bool

Source

pub const fn new_lootable() -> ItemFlag

affect only non container items that can be ‘open’ for loot. It or lockid set enable for client show ‘Right click to open’. See also ITEM_DYNFLAG_UNLOCKED

Source

pub fn set_lootable(&mut self) -> ItemFlag

Source

pub fn clear_lootable(&mut self) -> ItemFlag

Source

pub const fn is_deprecated(&self) -> bool

Source

pub const fn new_deprecated() -> ItemFlag

can’t repeat old note: appears red icon (like when item durability==0)

Source

pub fn set_deprecated(&mut self) -> ItemFlag

Source

pub fn clear_deprecated(&mut self) -> ItemFlag

Source

pub const fn is_indestructible(&self) -> bool

Source

pub const fn new_indestructible() -> ItemFlag

used for totem. Item can not be destroyed, except by using spell (item can be reagent for spell and then allowed)

Source

pub fn set_indestructible(&mut self) -> ItemFlag

Source

pub fn clear_indestructible(&mut self) -> ItemFlag

Source

pub const fn is_player_cast(&self) -> bool

Source

pub const fn new_player_cast() -> ItemFlag

? old note: usable

Source

pub fn set_player_cast(&mut self) -> ItemFlag

Source

pub fn clear_player_cast(&mut self) -> ItemFlag

Source

pub const fn is_no_equip_cooldown(&self) -> bool

Source

pub const fn new_no_equip_cooldown() -> ItemFlag

items without an equip cooldown (and usually a _USABLE flag)

Source

pub fn set_no_equip_cooldown(&mut self) -> ItemFlag

Source

pub fn clear_no_equip_cooldown(&mut self) -> ItemFlag

Source

pub const fn is_int_bonus_instead(&self) -> bool

Source

pub const fn new_int_bonus_instead() -> ItemFlag

saw this on item 47115, 49295…

Source

pub fn set_int_bonus_instead(&mut self) -> ItemFlag

Source

pub fn clear_int_bonus_instead(&mut self) -> ItemFlag

Source

pub const fn is_wrapper(&self) -> bool

Source

pub const fn new_wrapper() -> ItemFlag

used or not used wrapper

Source

pub fn set_wrapper(&mut self) -> ItemFlag

Source

pub fn clear_wrapper(&mut self) -> ItemFlag

Source

pub const fn is_ignore_bag_space(&self) -> bool

Source

pub const fn new_ignore_bag_space() -> ItemFlag

ignore bag space at new item creation?

Source

pub fn set_ignore_bag_space(&mut self) -> ItemFlag

Source

pub fn clear_ignore_bag_space(&mut self) -> ItemFlag

Source

pub const fn is_party_loot(&self) -> bool

Source

pub const fn new_party_loot() -> ItemFlag

items which can be looted by all party members

Source

pub fn set_party_loot(&mut self) -> ItemFlag

Source

pub fn clear_party_loot(&mut self) -> ItemFlag

Source

pub const fn is_charter(&self) -> bool

Source

pub const fn new_charter() -> ItemFlag

arena/guild charter

Source

pub fn set_charter(&mut self) -> ItemFlag

Source

pub fn clear_charter(&mut self) -> ItemFlag

Source

pub const fn is_letter(&self) -> bool

Source

pub const fn new_letter() -> ItemFlag

readable letter items

Source

pub fn set_letter(&mut self) -> ItemFlag

Source

pub fn clear_letter(&mut self) -> ItemFlag

Source

pub const fn is_no_disenchant(&self) -> bool

Source

pub const fn new_no_disenchant() -> ItemFlag

Source

pub fn set_no_disenchant(&mut self) -> ItemFlag

Source

pub fn clear_no_disenchant(&mut self) -> ItemFlag

Source

pub const fn is_real_duration(&self) -> bool

Source

pub const fn new_real_duration() -> ItemFlag

Source

pub fn set_real_duration(&mut self) -> ItemFlag

Source

pub fn clear_real_duration(&mut self) -> ItemFlag

Source

pub const fn is_no_creator(&self) -> bool

Source

pub const fn new_no_creator() -> ItemFlag

Source

pub fn set_no_creator(&mut self) -> ItemFlag

Source

pub fn clear_no_creator(&mut self) -> ItemFlag

Source

pub const fn is_prospectable(&self) -> bool

Source

pub const fn new_prospectable() -> ItemFlag

item can have prospecting loot (in fact some items expected have empty loot)

Source

pub fn set_prospectable(&mut self) -> ItemFlag

Source

pub fn clear_prospectable(&mut self) -> ItemFlag

Source

pub const fn is_unique_equipped(&self) -> bool

Source

pub const fn new_unique_equipped() -> ItemFlag

custom server side check, in client added in 2.x

Source

pub fn set_unique_equipped(&mut self) -> ItemFlag

Source

pub fn clear_unique_equipped(&mut self) -> ItemFlag

Source

pub const fn is_ignore_for_auras(&self) -> bool

Source

pub const fn new_ignore_for_auras() -> ItemFlag

Source

pub fn set_ignore_for_auras(&mut self) -> ItemFlag

Source

pub fn clear_ignore_for_auras(&mut self) -> ItemFlag

Source

pub const fn is_ignore_default_arena_restrictions(&self) -> bool

Source

pub const fn new_ignore_default_arena_restrictions() -> ItemFlag

Item can be used during arena match

Source

pub fn set_ignore_default_arena_restrictions(&mut self) -> ItemFlag

Source

pub fn clear_ignore_default_arena_restrictions(&mut self) -> ItemFlag

Source

pub const fn is_no_durability_loss(&self) -> bool

Source

pub const fn new_no_durability_loss() -> ItemFlag

Some Thrown weapons have it (and only Thrown) but not all

Source

pub fn set_no_durability_loss(&mut self) -> ItemFlag

Source

pub fn clear_no_durability_loss(&mut self) -> ItemFlag

Source

pub const fn is_special_use(&self) -> bool

Source

pub const fn new_special_use() -> ItemFlag

Source

pub fn set_special_use(&mut self) -> ItemFlag

Source

pub fn clear_special_use(&mut self) -> ItemFlag

Source

pub const fn as_int(&self) -> u32

Trait Implementations§

Source§

impl Binary for ItemFlag

Source§

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

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

impl BitAnd for ItemFlag

Source§

type Output = ItemFlag

The resulting type after applying the & operator.
Source§

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

Performs the & operation. Read more
Source§

impl BitAndAssign for ItemFlag

Source§

fn bitand_assign(&mut self, rhs: ItemFlag)

Performs the &= operation. Read more
Source§

impl BitOr for ItemFlag

Source§

type Output = ItemFlag

The resulting type after applying the | operator.
Source§

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

Performs the | operation. Read more
Source§

impl BitOrAssign for ItemFlag

Source§

fn bitor_assign(&mut self, rhs: ItemFlag)

Performs the |= operation. Read more
Source§

impl BitXor for ItemFlag

Source§

type Output = ItemFlag

The resulting type after applying the ^ operator.
Source§

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

Performs the ^ operation. Read more
Source§

impl BitXorAssign for ItemFlag

Source§

fn bitxor_assign(&mut self, rhs: ItemFlag)

Performs the ^= operation. Read more
Source§

impl Clone for ItemFlag

Source§

fn clone(&self) -> ItemFlag

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 ItemFlag

Source§

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

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

impl Default for ItemFlag

Source§

fn default() -> ItemFlag

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

impl From<i32> for ItemFlag

Source§

fn from(value: i32) -> ItemFlag

Converts to this type from the input type.
Source§

impl From<u16> for ItemFlag

Source§

fn from(value: u16) -> ItemFlag

Converts to this type from the input type.
Source§

impl From<u32> for ItemFlag

Source§

fn from(value: u32) -> ItemFlag

Converts to this type from the input type.
Source§

impl From<u8> for ItemFlag

Source§

fn from(value: u8) -> ItemFlag

Converts to this type from the input type.
Source§

impl Hash for ItemFlag

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 ItemFlag

Source§

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

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

impl Octal for ItemFlag

Source§

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

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

impl Ord for ItemFlag

Source§

fn cmp(&self, other: &ItemFlag) -> 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 ItemFlag

Source§

fn eq(&self, other: &ItemFlag) -> 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 ItemFlag

Source§

fn partial_cmp(&self, other: &ItemFlag) -> 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 ItemFlag

Source§

type Error = i16

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

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

Performs the conversion.
Source§

impl TryFrom<i64> for ItemFlag

Source§

type Error = i64

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

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

Performs the conversion.
Source§

impl TryFrom<i8> for ItemFlag

Source§

type Error = i8

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

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

Performs the conversion.
Source§

impl TryFrom<u64> for ItemFlag

Source§

type Error = u64

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

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

Performs the conversion.
Source§

impl TryFrom<usize> for ItemFlag

Source§

type Error = usize

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

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

Performs the conversion.
Source§

impl UpperHex for ItemFlag

Source§

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

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

impl Copy for ItemFlag

Source§

impl Eq for ItemFlag

Source§

impl StructuralPartialEq for ItemFlag

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.