pub struct DateRange { /* private fields */ }Implementations§
Source§impl DateRange
impl DateRange
pub fn new( start: CalendarDate, end: CalendarDate, ) -> Result<DateRange, DateRangeError>
pub fn start(&self) -> CalendarDate
pub fn end(&self) -> CalendarDate
pub fn contains(&self, date: CalendarDate) -> bool
pub fn duration_days(&self) -> i64
Trait Implementations§
impl Copy for DateRange
impl Eq for DateRange
impl StructuralPartialEq for DateRange
Auto Trait Implementations§
impl Freeze for DateRange
impl RefUnwindSafe for DateRange
impl Send for DateRange
impl Sync for DateRange
impl Unpin for DateRange
impl UnsafeUnpin for DateRange
impl UnwindSafe for DateRange
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