Enum dofus_protocol::game::common::SpellModifierType
source · #[repr(i32)]pub enum SpellModifierType {
Show 19 variants
InvalidModification = 0,
Range = 1,
Damage = 2,
BaseDamage = 3,
HealBonus = 4,
ApCost = 5,
CastInterval = 6,
CriticalHitBonus = 7,
CastLine = 8,
Los = 9,
MaxCastPerTurn = 10,
MaxCastPerTarget = 11,
RangeMax = 12,
RangeMin = 13,
OccupiedCell = 14,
FreeCell = 15,
VisibleTarget = 16,
PortalFreeCell = 17,
PortalProjection = 18,
}
Variants§
InvalidModification = 0
Range = 1
Damage = 2
BaseDamage = 3
HealBonus = 4
ApCost = 5
CastInterval = 6
CriticalHitBonus = 7
CastLine = 8
Los = 9
MaxCastPerTurn = 10
MaxCastPerTarget = 11
RangeMax = 12
RangeMin = 13
OccupiedCell = 14
FreeCell = 15
VisibleTarget = 16
PortalFreeCell = 17
PortalProjection = 18
Implementations§
source§impl SpellModifierType
impl SpellModifierType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SpellModifierType
impl Clone for SpellModifierType
source§fn clone(&self) -> SpellModifierType
fn clone(&self) -> SpellModifierType
Returns a copy 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 SpellModifierType
impl Debug for SpellModifierType
source§impl Default for SpellModifierType
impl Default for SpellModifierType
source§fn default() -> SpellModifierType
fn default() -> SpellModifierType
Returns the “default value” for a type. Read more
source§impl From<SpellModifierType> for i32
impl From<SpellModifierType> for i32
source§fn from(value: SpellModifierType) -> i32
fn from(value: SpellModifierType) -> i32
Converts to this type from the input type.
source§impl Hash for SpellModifierType
impl Hash for SpellModifierType
source§impl Ord for SpellModifierType
impl Ord for SpellModifierType
source§fn cmp(&self, other: &SpellModifierType) -> Ordering
fn cmp(&self, other: &SpellModifierType) -> 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 SpellModifierType
impl PartialEq for SpellModifierType
source§impl PartialOrd for SpellModifierType
impl PartialOrd for SpellModifierType
source§impl TryFrom<i32> for SpellModifierType
impl TryFrom<i32> for SpellModifierType
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<SpellModifierType, UnknownEnumValue>
fn try_from(value: i32) -> Result<SpellModifierType, UnknownEnumValue>
Performs the conversion.
impl Copy for SpellModifierType
impl Eq for SpellModifierType
impl StructuralPartialEq for SpellModifierType
Auto Trait Implementations§
impl Freeze for SpellModifierType
impl RefUnwindSafe for SpellModifierType
impl Send for SpellModifierType
impl Sync for SpellModifierType
impl Unpin for SpellModifierType
impl UnwindSafe for SpellModifierType
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)