pub struct RecommendationEngine { /* private fields */ }Expand description
Engine that generates smart lesson recommendations
Implementations§
Source§impl RecommendationEngine
impl RecommendationEngine
Sourcepub fn get_recommendations(
&self,
completed_lessons: &HashSet<String>,
stats: &UserStats,
max_recommendations: usize,
) -> Vec<LessonRecommendation>
pub fn get_recommendations( &self, completed_lessons: &HashSet<String>, stats: &UserStats, max_recommendations: usize, ) -> Vec<LessonRecommendation>
Get personalized lesson recommendations for a user
Returns a sorted list of recommendations, best matches first
Sourcepub fn get_recommendations_by_difficulty(
&self,
completed_lessons: &HashSet<String>,
difficulty: Difficulty,
max_recommendations: usize,
) -> Vec<LessonRecommendation>
pub fn get_recommendations_by_difficulty( &self, completed_lessons: &HashSet<String>, difficulty: Difficulty, max_recommendations: usize, ) -> Vec<LessonRecommendation>
Get recommendations for a specific difficulty level
Sourcepub fn get_next_lesson(
&self,
completed_lessons: &HashSet<String>,
stats: &UserStats,
) -> Option<LessonRecommendation>
pub fn get_next_lesson( &self, completed_lessons: &HashSet<String>, stats: &UserStats, ) -> Option<LessonRecommendation>
Get the next recommended lesson (top recommendation)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecommendationEngine
impl RefUnwindSafe for RecommendationEngine
impl Send for RecommendationEngine
impl Sync for RecommendationEngine
impl Unpin for RecommendationEngine
impl UnwindSafe for RecommendationEngine
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