pub struct TrackProgress {
pub track: Track,
pub total: usize,
pub completed: Vec<String>,
pub remaining: Vec<String>,
pub mastered: usize,
}Expand description
One track’s progress against a lesson library
Fields§
§track: Track§total: usizeLessons in the track, in library order
completed: Vec<String>Titles of finished lessons, in library order
remaining: Vec<String>Titles of lessons still to do, in library order
mastered: usizeFinished lessons that were also mastered
Implementations§
Source§impl TrackProgress
impl TrackProgress
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Every lesson in the track is finished (and the track has lessons)
Sourcepub fn is_mastered(&self) -> bool
pub fn is_mastered(&self) -> bool
Every lesson in the track was finished without needing the answer
Trait Implementations§
Source§impl Clone for TrackProgress
impl Clone for TrackProgress
Source§impl Debug for TrackProgress
impl Debug for TrackProgress
impl Eq for TrackProgress
Source§impl PartialEq for TrackProgress
impl PartialEq for TrackProgress
impl StructuralPartialEq for TrackProgress
Auto Trait Implementations§
impl Freeze for TrackProgress
impl RefUnwindSafe for TrackProgress
impl Send for TrackProgress
impl Sync for TrackProgress
impl Unpin for TrackProgress
impl UnsafeUnpin for TrackProgress
impl UnwindSafe for TrackProgress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.