pub struct Trial<const N: usize> { /* private fields */ }Implementations§
Source§impl<const N: usize> Trial<N>
impl<const N: usize> Trial<N>
pub fn new(thresholds: [f32; 3]) -> Result<Trial<N>, LoopError>
pub fn start(&mut self)
pub fn elapsed(&self) -> f64
pub fn splits(&self) -> &[Option<f64>; N]
pub fn finished(&self) -> bool
pub fn advance(&mut self, dt: f32) -> Result<(), LoopError>
pub fn split(&mut self, index: usize) -> Result<bool, LoopError>
pub fn medal(&self) -> Option<Medal>
Trait Implementations§
impl<const N: usize> Copy for Trial<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for Trial<N>
impl<const N: usize> RefUnwindSafe for Trial<N>
impl<const N: usize> Send for Trial<N>
impl<const N: usize> Sync for Trial<N>
impl<const N: usize> Unpin for Trial<N>
impl<const N: usize> UnwindSafe for Trial<N>
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