Enum sn0int::cal::ActivityGrade
source · pub enum ActivityGrade {
None,
One,
Two,
Three,
Four,
}
Variants§
Implementations§
source§impl ActivityGrade
impl ActivityGrade
pub fn from_ratio(num: u64, max: u64) -> ActivityGrade
Trait Implementations§
source§impl Clone for ActivityGrade
impl Clone for ActivityGrade
source§fn clone(&self) -> ActivityGrade
fn clone(&self) -> ActivityGrade
Returns a copy 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 ActivityGrade
impl Debug for ActivityGrade
source§impl PartialEq<ActivityGrade> for ActivityGrade
impl PartialEq<ActivityGrade> for ActivityGrade
source§fn eq(&self, other: &ActivityGrade) -> bool
fn eq(&self, other: &ActivityGrade) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActivityGrade
Auto Trait Implementations§
impl RefUnwindSafe for ActivityGrade
impl Send for ActivityGrade
impl Sync for ActivityGrade
impl Unpin for ActivityGrade
impl UnwindSafe for ActivityGrade
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more