pub struct ApplyEffects {
pub effects: PrefixedArray<PotionEffect>,
pub probability: Float,
}Fields§
§effects: PrefixedArray<PotionEffect>§probability: FloatImplementations§
Source§impl ApplyEffects
impl ApplyEffects
pub fn new(effects: PrefixedArray<PotionEffect>, probability: Float) -> Self
Trait Implementations§
Source§impl Clone for ApplyEffects
impl Clone for ApplyEffects
Source§fn clone(&self) -> ApplyEffects
fn clone(&self) -> ApplyEffects
Returns a duplicate 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 ApplyEffects
impl Debug for ApplyEffects
Source§impl Field for ApplyEffects
impl Field for ApplyEffects
Auto Trait Implementations§
impl Freeze for ApplyEffects
impl RefUnwindSafe for ApplyEffects
impl Send for ApplyEffects
impl Sync for ApplyEffects
impl Unpin for ApplyEffects
impl UnwindSafe for ApplyEffects
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