pub struct Concealer { /* private fields */ }Expand description
Conceals a combat for a player’s device: its state, then the events that follow it. It remembers who’s behind the screen, so an event about a combatant who has since left is concealed too.
Implementations§
Source§impl Concealer
impl Concealer
Sourcepub fn new(state: &CombatState) -> Self
pub fn new(state: &CombatState) -> Self
For a combat as it stands in state (not concealed yet).
Sourcepub fn state(&self, state: &CombatState) -> CombatState
pub fn state(&self, state: &CombatState) -> CombatState
state as a player’s device sees it.
Sourcepub fn event(&mut self, event: &LoggedEvent) -> LoggedEvent
pub fn event(&mut self, event: &LoggedEvent) -> LoggedEvent
event as a player’s device sees it.
Auto Trait Implementations§
impl Freeze for Concealer
impl RefUnwindSafe for Concealer
impl Send for Concealer
impl Sync for Concealer
impl Unpin for Concealer
impl UnsafeUnpin for Concealer
impl UnwindSafe for Concealer
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