pub struct IntervalGenerator { /* private fields */ }Expand description
Generator for time intervals.
Implementations§
Source§impl IntervalGenerator
impl IntervalGenerator
pub fn new() -> Self
pub fn with_grouping(self, grouping: Grouping) -> Self
pub fn with_precision(self, precision: Duration) -> Self
pub fn with_offset_west_secs(self, offset_west_secs: i32) -> Self
pub fn without_extended_begin(self) -> Self
pub fn without_extended_end(self) -> Self
pub fn without_extension(self) -> Self
pub fn get_intervals<T>(
&self,
begin: DateTime<T>,
end: DateTime<T>,
) -> Vec<TimeInterval<Utc>> ⓘwhere
T: TimeZone,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IntervalGenerator
impl RefUnwindSafe for IntervalGenerator
impl Send for IntervalGenerator
impl Sync for IntervalGenerator
impl Unpin for IntervalGenerator
impl UnwindSafe for IntervalGenerator
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