pub struct MatchEvent {
pub minute: u8,
pub side: Side,
pub zone: Zone,
pub kind: MatchEventKind,
}Expand description
One beat in the minute-by-minute stream. zone is the zone-entry context
(MATCH_MODEL.md §9) so a beat can say where on the pitch it happened.
Fields§
§minute: u8§side: Side§zone: Zone§kind: MatchEventKindImplementations§
Source§impl MatchEvent
impl MatchEvent
Sourcepub fn commentary(&self, side_name: &str) -> String
pub fn commentary(&self, side_name: &str) -> String
A pure, presentation-agnostic rendering — the humble text match view
(DESIGN.md §9) is just this, printed in order. No I/O here; callers
(fforge-game, the only crate allowed to touch stdout) print it.
Trait Implementations§
Source§impl Clone for MatchEvent
impl Clone for MatchEvent
Source§fn clone(&self) -> MatchEvent
fn clone(&self) -> MatchEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MatchEvent
Source§impl Debug for MatchEvent
impl Debug for MatchEvent
impl Eq for MatchEvent
Source§impl PartialEq for MatchEvent
impl PartialEq for MatchEvent
impl StructuralPartialEq for MatchEvent
Auto Trait Implementations§
impl Freeze for MatchEvent
impl RefUnwindSafe for MatchEvent
impl Send for MatchEvent
impl Sync for MatchEvent
impl Unpin for MatchEvent
impl UnsafeUnpin for MatchEvent
impl UnwindSafe for MatchEvent
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