Enum golden_apple::enums::PotionEffect
source · [−]pub enum PotionEffect {
Show 33 variants
Speed,
Slowness,
Haste,
MiningFatigue,
Strength,
InstantHealth,
InstantDamage,
JumpBoost,
Nausea,
Regeneration,
Resistance,
FireResistance,
WaterBreathing,
Invisibility,
Blindness,
NightVision,
Hunger,
Weakness,
Poison,
Wither,
HealthBoost,
Absorption,
Saturation,
Glowing,
Levitation,
Luck,
Unluck,
SlowFalling,
ConduitPower,
DolphinsGrace,
BadOmen,
HeroOfTheVillage,
Darkness,
}
Variants
Speed
Slowness
Haste
MiningFatigue
Strength
InstantHealth
InstantDamage
JumpBoost
Nausea
Regeneration
Resistance
FireResistance
WaterBreathing
Invisibility
Blindness
NightVision
Hunger
Weakness
Poison
Wither
HealthBoost
Absorption
Saturation
Glowing
Levitation
Luck
Unluck
SlowFalling
ConduitPower
DolphinsGrace
BadOmen
HeroOfTheVillage
Darkness
Trait Implementations
sourceimpl Clone for PotionEffect
impl Clone for PotionEffect
sourcefn clone(&self) -> PotionEffect
fn clone(&self) -> PotionEffect
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 more
sourceimpl Debug for PotionEffect
impl Debug for PotionEffect
sourceimpl PartialEq<PotionEffect> for PotionEffect
impl PartialEq<PotionEffect> for PotionEffect
sourcefn eq(&self, other: &PotionEffect) -> bool
fn eq(&self, other: &PotionEffect) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for PotionEffect
impl TryFrom<u32> for PotionEffect
impl Copy for PotionEffect
impl Eq for PotionEffect
impl StructuralEq for PotionEffect
impl StructuralPartialEq for PotionEffect
Auto Trait Implementations
impl RefUnwindSafe for PotionEffect
impl Send for PotionEffect
impl Sync for PotionEffect
impl Unpin for PotionEffect
impl UnwindSafe for PotionEffect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more