pub enum QualityLevel {
Excellent,
Good,
Average,
Poor,
Terrible,
}Variants§
Implementations§
Source§impl QualityLevel
impl QualityLevel
pub fn from_score(score: f64) -> Self
pub fn description(&self, lang: &str) -> &'static str
pub fn emoji(&self) -> &'static str
Trait Implementations§
Source§impl Clone for QualityLevel
impl Clone for QualityLevel
Source§fn clone(&self) -> QualityLevel
fn clone(&self) -> QualityLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QualityLevel
impl Debug for QualityLevel
Source§impl PartialEq for QualityLevel
impl PartialEq for QualityLevel
impl StructuralPartialEq for QualityLevel
Auto Trait Implementations§
impl Freeze for QualityLevel
impl RefUnwindSafe for QualityLevel
impl Send for QualityLevel
impl Sync for QualityLevel
impl Unpin for QualityLevel
impl UnwindSafe for QualityLevel
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