Struct trane::Trane

source · []
pub struct Trane { /* private fields */ }
Expand description

Trane is a library for the acquisition of highly hierarchical knowledge and skills based on the principles of mastery learning and spaced repetition. Given a list of courses, its lessons and correspondings exercises, Trane presents the student with a list of exercises based on the demonstrated mastery of previous exercises. It makes sures that new material and skills are not introduced until the prerequisite material and skills have been sufficiently mastered.

Implementations

Creates a new entrance of the library given the path to the root of a course library. The user data will be stored in a directory named .trane inside the library root directory.

Returns the path to the root of the course library.

Trait Implementations

Adds the given unit to the list of blacklisted units.

Removes the given unit from the list of blacklisted units. Do nothing if the unit is not already in the list. Read more

Returns whether the given unit should be skipped during scheduling.

Returns the list of blacklisted units.

Returns the manifest for the given course.

Returns the manifest for the given lesson.

Returns the manfifest for the given exercise.

Retrieves the assigned uid to the given unit_id.

Retrieves the human-readable ID of the unit with the given UID.

Returns the type of the given unit.

Sets the options used while searching for exercise candidates.

Gets a new batch of exercises scheduled for a new trial.

Records the score of the given exercise’s trial.

Gets the filter with the given ID.

Returns a list of filter IDs and descriptions.

Retrieves the last num_scores scores of a particular exercese.

Records the score assigned to the exercise in a particular trial. Therefore, the score is a value of the MasteryScore enum instead of a float. Only units of type UnitType::Exercise should have scores recorded. However, the enforcement of this requirement is left to the caller. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.