pub struct ScriptAilment<A>(pub Option<A>);
Tuple Fields§
§0: Option<A>
Implementations§
Source§impl ScriptAilment<AilmentInstance<AilmentLength>>
impl ScriptAilment<AilmentInstance<AilmentLength>>
pub fn ailment(ailment: Ailment, turns: AilmentLength) -> Self
pub fn init<R: Rng + Clone + 'static>( &mut self, random: ScriptRandom<R>, ) -> LiveScriptAilment
Source§impl ScriptAilment<AilmentInstance<Option<u8>>>
impl ScriptAilment<AilmentInstance<Option<u8>>>
pub fn clear_ailment() -> LiveScriptAilment
Trait Implementations§
Source§impl<A: Clone> Clone for ScriptAilment<A>
impl<A: Clone> Clone for ScriptAilment<A>
Source§fn clone(&self) -> ScriptAilment<A>
fn clone(&self) -> ScriptAilment<A>
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<A: Debug> Debug for ScriptAilment<A>
impl<A: Debug> Debug for ScriptAilment<A>
impl<A: Copy> Copy for ScriptAilment<A>
Auto Trait Implementations§
impl<A> Freeze for ScriptAilment<A>where
A: Freeze,
impl<A> RefUnwindSafe for ScriptAilment<A>where
A: RefUnwindSafe,
impl<A> Send for ScriptAilment<A>where
A: Send,
impl<A> Sync for ScriptAilment<A>where
A: Sync,
impl<A> Unpin for ScriptAilment<A>where
A: Unpin,
impl<A> UnwindSafe for ScriptAilment<A>where
A: UnwindSafe,
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