#[non_exhaustive]#[repr(i32)]pub enum Mechanic {
Show 36 variants
Charm = 1,
Disoriented = 2,
Disarm = 3,
Distract = 4,
Fear = 5,
Grip = 6,
Root = 7,
SlowAttack = 8,
Silence = 9,
Sleep = 10,
Snare = 11,
Stun = 12,
Freeze = 13,
Knockout = 14,
Bleed = 15,
Bandage = 16,
Polymorph = 17,
Banish = 18,
Shield = 19,
Shackle = 20,
Mount = 21,
Infected = 22,
Turn = 23,
Horror = 24,
Invulnerability = 25,
Interrupt = 26,
Daze = 27,
Discovery = 28,
ImmuneShield = 29,
Sapped = 30,
Enraged = 31,
Wounded = 32,
Infected2 = 33,
Infected3 = 34,
Infected4 = 35,
Taunted = 36,
}Expand description
TrinityCore/DBC Mechanics identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Charm = 1
Disoriented = 2
Disarm = 3
Distract = 4
Fear = 5
Grip = 6
Root = 7
SlowAttack = 8
Silence = 9
Sleep = 10
Snare = 11
Stun = 12
Freeze = 13
Knockout = 14
Bleed = 15
Bandage = 16
Polymorph = 17
Banish = 18
Shield = 19
Shackle = 20
Mount = 21
Infected = 22
Turn = 23
Horror = 24
Invulnerability = 25
Interrupt = 26
Daze = 27
Discovery = 28
ImmuneShield = 29
Sapped = 30
Enraged = 31
Wounded = 32
Infected2 = 33
Infected3 = 34
Infected4 = 35
Taunted = 36
Implementations§
Trait Implementations§
impl Copy for Mechanic
impl Eq for Mechanic
impl StructuralPartialEq for Mechanic
Auto Trait Implementations§
impl Freeze for Mechanic
impl RefUnwindSafe for Mechanic
impl Send for Mechanic
impl Sync for Mechanic
impl Unpin for Mechanic
impl UnsafeUnpin for Mechanic
impl UnwindSafe for Mechanic
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more