pub struct RangeSpec {
pub lo: Option<i64>,
pub hi: Option<i64>,
}Expand description
Reference zic’s -r '[@lo][/@hi]' range-truncation bounds (T10.4), as raw parsed Unix-second
instants — None on a side means that side is unbounded (zic’s min_time/max_time default).
T10.4b (parse-only): this is currently parsed and validated but not yet applied — a value
fails closed rather than silently producing un-truncated output (range truncation lands in
T10.4d). When applied, truncation introduces a leading (and, if the end is cut, trailing)
-00 “local time unspecified” type — it is not a plain transition filter, and -r is a
different input to the clamp than -R (CompileConfig::redundant_until); they do not merge.
The hi -= 1 / limitrange resolution is deferred to T10.4d (the stored hi is the raw @hi).
Fields§
§lo: Option<i64>§hi: Option<i64>Trait Implementations§
impl Copy for RangeSpec
impl Eq for RangeSpec
impl StructuralPartialEq for RangeSpec
Auto Trait Implementations§
impl Freeze for RangeSpec
impl RefUnwindSafe for RangeSpec
impl Send for RangeSpec
impl Sync for RangeSpec
impl Unpin for RangeSpec
impl UnsafeUnpin for RangeSpec
impl UnwindSafe for RangeSpec
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