pub struct DateTimeRange { /* private fields */ }
Implementations§
Source§impl DateTimeRange
impl DateTimeRange
pub fn new(since: NaiveDateTime, until: NaiveDateTime) -> Result<Self, Error>
pub fn since(&self) -> NaiveDateTime
pub fn until(&self) -> NaiveDateTime
Trait Implementations§
Source§impl Clone for DateTimeRange
impl Clone for DateTimeRange
Source§fn clone(&self) -> DateTimeRange
fn clone(&self) -> DateTimeRange
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DateTimeRange
impl Debug for DateTimeRange
Source§impl From<&DateRange> for DateTimeRange
impl From<&DateRange> for DateTimeRange
Source§impl From<DateRange> for DateTimeRange
impl From<DateRange> for DateTimeRange
impl Copy for DateTimeRange
Auto Trait Implementations§
impl Freeze for DateTimeRange
impl RefUnwindSafe for DateTimeRange
impl Send for DateTimeRange
impl Sync for DateTimeRange
impl Unpin for DateTimeRange
impl UnwindSafe for DateTimeRange
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