pub enum IntervalEndpoint {
Date(Date),
Open,
Unknown,
OnOrBefore(Date),
OnOrAfter(Date),
}Expand description
One side of a time interval.
Variants§
Date(Date)
A concrete (possibly qualified/unspecified) date.
Open
.. — open (unbounded).
Unknown
Empty — unknown.
OnOrBefore(Date)
..date at the start: begins on or before this date (ISO 8601-2 §10.6).
OnOrAfter(Date)
date.. at the end: ends on or after this date (ISO 8601-2 §10.6).
Implementations§
Trait Implementations§
Source§impl Clone for IntervalEndpoint
impl Clone for IntervalEndpoint
Source§fn clone(&self) -> IntervalEndpoint
fn clone(&self) -> IntervalEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IntervalEndpoint
Source§impl Debug for IntervalEndpoint
impl Debug for IntervalEndpoint
impl Eq for IntervalEndpoint
Source§impl PartialEq for IntervalEndpoint
impl PartialEq for IntervalEndpoint
impl StructuralPartialEq for IntervalEndpoint
Auto Trait Implementations§
impl Freeze for IntervalEndpoint
impl RefUnwindSafe for IntervalEndpoint
impl Send for IntervalEndpoint
impl Sync for IntervalEndpoint
impl Unpin for IntervalEndpoint
impl UnsafeUnpin for IntervalEndpoint
impl UnwindSafe for IntervalEndpoint
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