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§
Sourcefn play_state(&self) -> &PlayState
fn play_state(&self) -> &PlayState
Returns an immutable reference to the play state.
Sourcefn play_state_mut(&mut self) -> &mut PlayState
fn play_state_mut(&mut self) -> &mut PlayState
Returns a mutable reference to the play state.