Struct kronos::Range
[−]
[src]
pub struct Range { pub start: NaiveDateTime, pub end: NaiveDateTime, pub grain: Grain, }
Fields
start: NaiveDateTime
end: NaiveDateTime
grain: Grain
Methods
impl Range
[src]
fn intersect(&self, other: &Range) -> Option<Range>
fn len(&self) -> Duration
fn shift(&self, g: Grain, n: i32) -> Range
fn from_grain(d: NaiveDateTime, g: Grain) -> Range
fn truncate(&self, g: Grain) -> Range
Trait Implementations
impl Clone for Range
[src]
fn clone(&self) -> Range
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