Skip to main content

HasPlayState

Trait HasPlayState 

Source
pub trait HasPlayState {
    // Required methods
    fn play_state(&self) -> &PlayState;
    fn play_state_mut(&mut self) -> &mut PlayState;
}
Expand description

Trait for types that expose a PlayState.

Required Methods§

Source

fn play_state(&self) -> &PlayState

Returns an immutable reference to the play state.

Source

fn play_state_mut(&mut self) -> &mut PlayState

Returns a mutable reference to the play state.

Implementors§