pub struct StatSet<P: MonsterProvider> { /* private fields */ }Expand description
A small map from P::Stat to u16.
Because P::Stat is opaque to the engine, this is stored as a Vec kept in
the provider’s MonsterProvider::stats order. (We deliberately do not
require an EnumMap here — the game’s stat enum is unknown to the engine, so
a Vec keyed by the provider’s stat order is the pragmatic choice.)
Implementations§
Source§impl<P: MonsterProvider> StatSet<P>
impl<P: MonsterProvider> StatSet<P>
Trait Implementations§
impl<P: Eq + MonsterProvider> Eq for StatSet<P>
impl<P: PartialEq + MonsterProvider> StructuralPartialEq for StatSet<P>
Auto Trait Implementations§
impl<P> Freeze for StatSet<P>
impl<P> RefUnwindSafe for StatSet<P>
impl<P> Send for StatSet<P>
impl<P> Sync for StatSet<P>
impl<P> Unpin for StatSet<P>
impl<P> UnsafeUnpin for StatSet<P>
impl<P> UnwindSafe for StatSet<P>
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