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