pub struct PowerslideCalculator { /* private fields */ }Implementations§
Source§impl PowerslideCalculator
impl PowerslideCalculator
pub fn new() -> Self
pub fn player_stats(&self) -> &HashMap<PlayerId, PowerslideStats>
pub fn team_zero_stats(&self) -> &PowerslideStats
pub fn team_one_stats(&self) -> &PowerslideStats
pub fn update( &mut self, frame: &FrameInfo, players: &PlayerFrameState, live_play: bool, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for PowerslideCalculator
impl Clone for PowerslideCalculator
Source§fn clone(&self) -> PowerslideCalculator
fn clone(&self) -> PowerslideCalculator
Returns a duplicate of the value. Read more
1.0.0 · 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 PowerslideCalculator
impl Debug for PowerslideCalculator
Source§impl Default for PowerslideCalculator
impl Default for PowerslideCalculator
Source§fn default() -> PowerslideCalculator
fn default() -> PowerslideCalculator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PowerslideCalculator
impl RefUnwindSafe for PowerslideCalculator
impl Send for PowerslideCalculator
impl Sync for PowerslideCalculator
impl Unpin for PowerslideCalculator
impl UnsafeUnpin for PowerslideCalculator
impl UnwindSafe for PowerslideCalculator
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