pub struct LinearCurriculum { /* private fields */ }Expand description
Linear curriculum that progresses through difficulty levels
Implementations§
Source§impl LinearCurriculum
impl LinearCurriculum
Sourcepub fn new(n_stages: usize) -> LinearCurriculum
pub fn new(n_stages: usize) -> LinearCurriculum
Create a linear curriculum with specified number of stages
§Arguments
n_stages- Number of stages (higher = finer progression)
Sourcepub fn with_difficulty_range(self, min: f64, max: f64) -> LinearCurriculum
pub fn with_difficulty_range(self, min: f64, max: f64) -> LinearCurriculum
Set custom difficulty range
Trait Implementations§
Source§impl Clone for LinearCurriculum
impl Clone for LinearCurriculum
Source§fn clone(&self) -> LinearCurriculum
fn clone(&self) -> LinearCurriculum
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CurriculumScheduler for LinearCurriculum
impl CurriculumScheduler for LinearCurriculum
Source§fn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Check if curriculum is complete
Source§fn current_threshold(&self) -> f64
fn current_threshold(&self) -> f64
Get the difficulty threshold for current stage
Source§impl Debug for LinearCurriculum
impl Debug for LinearCurriculum
Source§impl Default for LinearCurriculum
impl Default for LinearCurriculum
Source§fn default() -> LinearCurriculum
fn default() -> LinearCurriculum
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinearCurriculum
impl RefUnwindSafe for LinearCurriculum
impl Send for LinearCurriculum
impl Sync for LinearCurriculum
impl Unpin for LinearCurriculum
impl UnsafeUnpin for LinearCurriculum
impl UnwindSafe for LinearCurriculum
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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