pub struct ReadingState { /* private fields */ }Implementations§
Source§impl ReadingState
impl ReadingState
pub fn new(token_count: usize, wpm: u32) -> Self
pub fn current_state(&self) -> State
pub fn current_index(&self) -> Option<usize>
pub fn wpm(&self) -> u32
pub fn transition(&mut self, event: Event) -> Result<StateChange, StateError>
Auto Trait Implementations§
impl Freeze for ReadingState
impl RefUnwindSafe for ReadingState
impl Send for ReadingState
impl Sync for ReadingState
impl Unpin for ReadingState
impl UnsafeUnpin for ReadingState
impl UnwindSafe for ReadingState
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