pub enum Grade {
None,
Late,
Some,
Perfect,
}Variants§
Implementations§
Source§impl Grade
impl Grade
pub fn get_factor(&self) -> f32
pub fn ml_normalized(&self) -> String
pub fn ml_binary(&self) -> String
pub fn is_succesful_recall(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grade
impl<'de> Deserialize<'de> for Grade
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.