Enum esl::EnchantmentType
source · #[repr(u32)]pub enum EnchantmentType {
CastOnce = 0,
WhenStrikes = 1,
WhenUsed = 2,
ConstantEffect = 3,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for EnchantmentType
impl Clone for EnchantmentType
source§fn clone(&self) -> EnchantmentType
fn clone(&self) -> EnchantmentType
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 EnchantmentType
impl Debug for EnchantmentType
source§impl<'de> Deserialize<'de> for EnchantmentType
impl<'de> Deserialize<'de> for EnchantmentType
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 Hash for EnchantmentType
impl Hash for EnchantmentType
source§impl Ord for EnchantmentType
impl Ord for EnchantmentType
source§fn cmp(&self, other: &EnchantmentType) -> Ordering
fn cmp(&self, other: &EnchantmentType) -> 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 EnchantmentType
impl PartialEq for EnchantmentType
source§fn eq(&self, other: &EnchantmentType) -> bool
fn eq(&self, other: &EnchantmentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EnchantmentType
impl PartialOrd for EnchantmentType
source§fn partial_cmp(&self, other: &EnchantmentType) -> Option<Ordering>
fn partial_cmp(&self, other: &EnchantmentType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EnchantmentType
impl Serialize for EnchantmentType
source§impl Display for EnchantmentType
impl Display for EnchantmentType
source§fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
fn fmt(&self, f: &mut std_fmt_Formatter<'_>) -> std_fmt_Result
Formats the value using the given formatter. Read more
source§impl FromStr for EnchantmentType
impl FromStr for EnchantmentType
impl Copy for EnchantmentType
impl Eq for EnchantmentType
impl StructuralEq for EnchantmentType
impl StructuralPartialEq for EnchantmentType
Auto Trait Implementations§
impl RefUnwindSafe for EnchantmentType
impl Send for EnchantmentType
impl Sync for EnchantmentType
impl Unpin for EnchantmentType
impl UnwindSafe for EnchantmentType
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