pub struct RotationCalculator { /* private fields */ }Implementations§
Source§impl RotationCalculator
impl RotationCalculator
pub fn new() -> Self
pub fn with_config(config: RotationCalculatorConfig) -> Self
pub fn config(&self) -> &RotationCalculatorConfig
pub fn player_stats(&self) -> &HashMap<PlayerId, RotationPlayerStats>
pub fn team_zero_stats(&self) -> &RotationTeamStats
pub fn team_one_stats(&self) -> &RotationTeamStats
pub fn player_events(&self) -> &[RotationPlayerEvent]
pub fn team_events(&self) -> &[RotationTeamEvent]
pub fn update( &mut self, frame: &FrameInfo, gameplay: &GameplayState, ball: &BallFrameState, players: &PlayerFrameState, events: &FrameEventsState, live_play: bool, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for RotationCalculator
impl Clone for RotationCalculator
Source§fn clone(&self) -> RotationCalculator
fn clone(&self) -> RotationCalculator
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 moreSource§impl Debug for RotationCalculator
impl Debug for RotationCalculator
Source§impl Default for RotationCalculator
impl Default for RotationCalculator
Source§fn default() -> RotationCalculator
fn default() -> RotationCalculator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RotationCalculator
impl RefUnwindSafe for RotationCalculator
impl Send for RotationCalculator
impl Sync for RotationCalculator
impl Unpin for RotationCalculator
impl UnsafeUnpin for RotationCalculator
impl UnwindSafe for RotationCalculator
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