Enum kronos::Granularity
[−]
[src]
pub enum Granularity { Day, Week, Month, Quarter, Year, }
Variants
Day
Week
Month
Quarter
Year
Trait Implementations
impl Debug for Granularity
[src]
impl PartialEq for Granularity
[src]
fn eq(&self, __arg_0: &Granularity) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for Granularity
[src]
impl PartialOrd for Granularity
[src]
fn partial_cmp(&self, __arg_0: &Granularity) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Granularity
[src]
fn cmp(&self, __arg_0: &Granularity) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Clone for Granularity
[src]
fn clone(&self) -> Granularity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for Granularity
[src]
impl<S: AsRef<str>> From<S> for Granularity
[src]
fn from(s: S) -> Granularity
Performs the conversion.