pub struct EntropyCell(/* private fields */);Expand description
Sync interior-mutable holder for Entity::proc_entropy — proc checks run
behind &Entity throughout the fight code, and OverlordState futures
must stay Send (a RefCell here would un-Sync the whole state).
Manual impls because Mutex is neither Clone nor Eq; equality/clone
go through snapshots (combat-transient data, never serialized).
Implementations§
Source§impl EntropyCell
impl EntropyCell
Trait Implementations§
Source§impl Clone for EntropyCell
impl Clone for EntropyCell
Source§impl Debug for EntropyCell
impl Debug for EntropyCell
Source§impl Default for EntropyCell
impl Default for EntropyCell
Source§fn default() -> EntropyCell
fn default() -> EntropyCell
Returns the “default value” for a type. Read more
Source§impl PartialEq for EntropyCell
impl PartialEq for EntropyCell
impl Eq for EntropyCell
Auto Trait Implementations§
impl !Freeze for EntropyCell
impl RefUnwindSafe for EntropyCell
impl Send for EntropyCell
impl Sync for EntropyCell
impl Unpin for EntropyCell
impl UnwindSafe for EntropyCell
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