Skip to main content

improves_on_all

Function improves_on_all 

Source
pub fn improves_on_all(
    held: &[Option<MappedGrade>],
    ours: GradeSource<'_>,
) -> bool
Expand description

Whether the grade ours maps to beats every grade in held, which is what Suotar requires of an improvement. None is a held credit whose grade is unknown.

Stricter than Suotar where the two differ: an equal grade never submits (Suotar would let a later date or more credits through), and neither does a grade on a scale that does not rank against a held one, or a held grade that is missing.