pub struct DateTimeRange {
pub start: DateTime,
pub end: DateTime,
}Expand description
Represents a range of dates, i.e. the span of time from start to
end.
The range includes the start and end dates, so with start and end on the same day the
range covers one day.
Dart’s DateTimeRange<T extends DateTime> is generic over a subclass of DateTime;
see CalendarDelegate.
Fields§
§start: DateTimeThe start of the range of dates.
end: DateTimeThe end of the range of dates.
Implementations§
Source§impl DateTimeRange
impl DateTimeRange
Trait Implementations§
Source§impl Clone for DateTimeRange
impl Clone for DateTimeRange
impl Copy for DateTimeRange
Source§impl Debug for DateTimeRange
impl Debug for DateTimeRange
impl Eq for DateTimeRange
Source§impl Hash for DateTimeRange
impl Hash for DateTimeRange
Source§impl PartialEq for DateTimeRange
impl PartialEq for DateTimeRange
impl StructuralPartialEq for DateTimeRange
Auto Trait Implementations§
impl Forget for DateTimeRange
impl Freeze for DateTimeRange
impl Move for DateTimeRange
impl RefUnwindSafe for DateTimeRange
impl Send for DateTimeRange
impl Sync for DateTimeRange
impl Unpin for DateTimeRange
impl UnsafeUnpin for DateTimeRange
impl UnwindSafe for DateTimeRange
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.