pub enum Grade {
Show 14 variants
INC,
F,
DMinus,
D,
DPlus,
CMinus,
C,
CPlus,
BMinus,
B,
BPlus,
AMinus,
A,
APlus,
}Expand description
An equivalence class to categorize grades based on ranges of percentage point values. Derives PartialEq to reduce boilerplate. In Rust, the ordering of the discrimiants is important, such that the first listed discrimiant carries a value of 0, the next discrimiant a 1, and so on.
Variants§
Implementations§
Trait Implementations§
Source§impl Ord for Grade
impl Ord for Grade
Source§impl PartialOrd for Grade
impl PartialOrd for Grade
impl Eq for Grade
impl StructuralPartialEq for Grade
Auto Trait Implementations§
impl Freeze for Grade
impl RefUnwindSafe for Grade
impl Send for Grade
impl Sync for Grade
impl Unpin for Grade
impl UnwindSafe for Grade
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