Struct dicom_core::value::range::DateRange [−][src]
pub struct DateRange { /* fields omitted */ }Expand description
Represents a date range as two Option<chrono::NaiveDate> values.
None means no upper or no lower bound for range is present.
Example
use chrono::NaiveDate;
use dicom_core::value::DateRange;
let dr = DateRange::from_start(NaiveDate::from_ymd(2000, 5, 3));
assert!(dr.start().is_some());
assert!(dr.end().is_none());Implementations
Constructs a new DateRange from two chrono::NaiveDate values
monotonically ordered in time.
Constructs a new DateRange beginning with a chrono::NaiveDate value
and no upper limit.
Constructs a new DateRange with no lower limit, ending with a chrono::NaiveDate value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DateRange
impl UnwindSafe for DateRange
Blanket Implementations
Mutably borrows from an owned value. Read more