Enum esl::EnchantmentType
source · #[repr(u32)]
pub enum EnchantmentType {
CastOnce,
WhenStrikes,
WhenUsed,
ConstantEffect,
}
Variants
CastOnce
WhenStrikes
WhenUsed
ConstantEffect
Implementations
Trait Implementations
sourceimpl Clone for EnchantmentType
impl Clone for EnchantmentType
sourcefn clone(&self) -> EnchantmentType
fn clone(&self) -> EnchantmentType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for EnchantmentType
impl Debug for EnchantmentType
sourceimpl<'de> Deserialize<'de> for EnchantmentType
impl<'de> Deserialize<'de> for EnchantmentType
sourcefn 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
sourceimpl Display for EnchantmentType
impl Display for EnchantmentType
sourcefn 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
sourceimpl FromStr for EnchantmentType
impl FromStr for EnchantmentType
sourceimpl Hash for EnchantmentType
impl Hash for EnchantmentType
sourceimpl Ord for EnchantmentType
impl Ord for EnchantmentType
sourcefn cmp(&self, other: &EnchantmentType) -> Ordering
fn cmp(&self, other: &EnchantmentType) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<EnchantmentType> for EnchantmentType
impl PartialEq<EnchantmentType> for EnchantmentType
sourcefn eq(&self, other: &EnchantmentType) -> bool
fn eq(&self, other: &EnchantmentType) -> bool
sourceimpl PartialOrd<EnchantmentType> for EnchantmentType
impl PartialOrd<EnchantmentType> for EnchantmentType
sourcefn partial_cmp(&self, other: &EnchantmentType) -> Option<Ordering>
fn partial_cmp(&self, other: &EnchantmentType) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Serialize for EnchantmentType
impl Serialize 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more