pub struct LessonLibrary { /* private fields */ }Expand description
Lesson library that stores all available lessons
Implementations§
Source§impl LessonLibrary
impl LessonLibrary
pub fn new() -> Self
Sourcepub fn by_difficulty(&self, difficulty: Difficulty) -> Vec<&Lesson>
pub fn by_difficulty(&self, difficulty: Difficulty) -> Vec<&Lesson>
Get lessons by difficulty
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LessonLibrary
impl RefUnwindSafe for LessonLibrary
impl Send for LessonLibrary
impl Sync for LessonLibrary
impl Unpin for LessonLibrary
impl UnwindSafe for LessonLibrary
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