Struct date_range::DateRange
source · [−]pub struct DateRange { /* private fields */ }Implementations
sourceimpl DateRange
impl DateRange
pub fn new(since: NaiveDate, until: NaiveDate) -> Result<Self, Error>
pub fn from_timestamp(
since: i64,
until: i64,
configuration: impl Into<Option<DateRangeFromTimestampConfiguration>>
) -> Result<Self, Error>
pub fn since(&self) -> NaiveDate
pub fn until(&self) -> NaiveDate
pub fn since_datetime(&self) -> NaiveDateTime
pub fn until_datetime(&self) -> NaiveDateTime
pub fn prev(&self) -> Self
pub fn next(&self) -> Self
Trait Implementations
sourceimpl From<&'_ DateRange> for DateTimeRange
impl From<&'_ DateRange> for DateTimeRange
sourceimpl From<DateRange> for DateTimeRange
impl From<DateRange> for DateTimeRange
sourceimpl IntoIterator for DateRange
impl IntoIterator for DateRange
sourceimpl IntoIterator for &DateRange
impl IntoIterator for &DateRange
impl Copy for DateRange
impl Eq for DateRange
impl StructuralEq for DateRange
impl StructuralPartialEq for DateRange
Auto Trait Implementations
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnwindSafe for DateRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more