pub struct CollectedHandler<P: EffectProvider + ?Sized> {
pub order: u32,
pub priority: i32,
pub speed: u32,
pub sub_order: u8,
pub effect_order: u64,
pub target: BattlerRef,
pub source: BattlerRef,
pub source_effect: EffectId,
pub call: HandlerFn<P>,
}Expand description
One collected, sortable handler invocation (design §1.3). The comparator orders these by the exact Showdown lexical order.
Fields§
§order: u32on<Event>Order; default u32::MAX fires last; LOW first.
priority: i32on<Event>Priority; HIGH first.
speed: u32The host battler’s current speed; HIGH first (speed-sort).
sub_order: u8Effect-type sub-order; LOW first.
effect_order: u64Monotonic creation counter — the final deterministic tiebreak; LOW first.
target: BattlerRefThe event target.
source: BattlerRefThe event source.
source_effect: EffectIdWhich effect registered this handler.
call: HandlerFn<P>The native handler.
Trait Implementations§
Source§impl<P: EffectProvider + ?Sized> Clone for CollectedHandler<P>
impl<P: EffectProvider + ?Sized> Clone for CollectedHandler<P>
Auto Trait Implementations§
impl<P> Freeze for CollectedHandler<P>where
P: ?Sized,
impl<P> RefUnwindSafe for CollectedHandler<P>where
P: ?Sized,
impl<P> Send for CollectedHandler<P>where
P: ?Sized,
impl<P> Sync for CollectedHandler<P>where
P: ?Sized,
impl<P> Unpin for CollectedHandler<P>where
P: ?Sized,
impl<P> UnsafeUnpin for CollectedHandler<P>where
P: ?Sized,
impl<P> UnwindSafe for CollectedHandler<P>where
P: ?Sized,
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