pub struct PotionEffect {
pub type_id: VarInt,
pub details: PotionEffectDetail,
}Fields§
§type_id: VarInt§details: PotionEffectDetailImplementations§
Source§impl PotionEffect
impl PotionEffect
pub fn new(type_id: VarInt, details: PotionEffectDetail) -> Self
Trait Implementations§
Source§impl Clone for PotionEffect
impl Clone for PotionEffect
Source§fn clone(&self) -> PotionEffect
fn clone(&self) -> PotionEffect
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 PotionEffect
impl Debug for PotionEffect
Source§impl Field for PotionEffect
impl Field for PotionEffect
Auto Trait Implementations§
impl Freeze for PotionEffect
impl RefUnwindSafe for PotionEffect
impl Send for PotionEffect
impl Sync for PotionEffect
impl Unpin for PotionEffect
impl UnwindSafe for PotionEffect
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