pub struct CurriculumManager { /* private fields */ }Implementations§
Source§impl CurriculumManager
impl CurriculumManager
Sourcepub fn update_threshold(&mut self, episode: usize)
pub fn update_threshold(&mut self, episode: usize)
Update difficulty threshold
Sourcepub fn get_threshold(&self) -> f32
pub fn get_threshold(&self) -> f32
Get current difficulty threshold
Sourcepub fn estimate_difficulty(&self, html: &str) -> f32
pub fn estimate_difficulty(&self, html: &str) -> f32
Estimate HTML difficulty
Sourcepub fn is_appropriate(&self, html: &str) -> bool
pub fn is_appropriate(&self, html: &str) -> bool
Check if HTML is appropriate for current curriculum stage
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CurriculumManager
impl RefUnwindSafe for CurriculumManager
impl Send for CurriculumManager
impl Sync for CurriculumManager
impl Unpin for CurriculumManager
impl UnsafeUnpin for CurriculumManager
impl UnwindSafe for CurriculumManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more