Enum EffectCategory
#[non_exhaustive]pub enum EffectCategory {
Beneficial,
Harmful,
Neutral,
}Expand description
Vanilla MobEffectCategory, read from a registered effect’s type.
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.
Beneficial
A beneficial effect, such as speed.
Harmful
A harmful effect, such as poison.
Neutral
Neither beneficial nor harmful, such as glowing.
Trait Implementations§
§impl Clone for EffectCategory
impl Clone for EffectCategory
§fn clone(&self) -> EffectCategory
fn clone(&self) -> EffectCategory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EffectCategory
§impl Debug for EffectCategory
impl Debug for EffectCategory
impl Eq for EffectCategory
§impl PartialEq for EffectCategory
impl PartialEq for EffectCategory
impl StructuralPartialEq for EffectCategory
Auto Trait Implementations§
impl Freeze for EffectCategory
impl RefUnwindSafe for EffectCategory
impl Send for EffectCategory
impl Sync for EffectCategory
impl Unpin for EffectCategory
impl UnsafeUnpin for EffectCategory
impl UnwindSafe for EffectCategory
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