Enum repr::adt::datetime::DateTimeField [−][src]
pub enum DateTimeField {
Millennium,
Century,
Decade,
Year,
Month,
Day,
Hour,
Minute,
Second,
Milliseconds,
Microseconds,
}
Variants
Millennium
Century
Decade
Year
Month
Day
Hour
Minute
Second
Milliseconds
Microseconds
Implementations
Returns the number of seconds in a single unit of field
.
Panics
Panics if called on a non-duration field or a field smaller than a second.
Returns the number of ‘fields’ in a single second.
Panics
Panics if called on a non-duration field or a field larger than or equal to a second.
Returns the number of nanoseconds in a single unit of field
.
Panics
Panics if called on a non-duration field or a field smaller than a nanosecond.
Returns the number of months in a single unit of field
.
Panics
Panics if called on a duration field.
Trait Implementations
Iterate over DateTimeField
s in descending significance
type Item = DateTimeField
type Item = DateTimeField
The type of the elements being iterated over.
type IntoIter = DateTimeFieldIterator
type IntoIter = DateTimeFieldIterator
Which kind of iterator are we turning this into?
fn into_iter(self) -> DateTimeFieldIteratorⓘNotable traits for DateTimeFieldIteratorimpl Iterator for DateTimeFieldIterator type Item = DateTimeField;
fn into_iter(self) -> DateTimeFieldIteratorⓘNotable traits for DateTimeFieldIteratorimpl Iterator for DateTimeFieldIterator type Item = DateTimeField;
impl Iterator for DateTimeFieldIterator type Item = DateTimeField;
Creates an iterator from a value. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for DateTimeField
impl Send for DateTimeField
impl Sync for DateTimeField
impl Unpin for DateTimeField
impl UnwindSafe for DateTimeField
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more