pub struct EmitOptions {
pub style: EmitStyle,
pub redundant_until: Option<i64>,
pub range: Option<RangeSpec>,
}Expand description
Full emission options: an EmitStyle plus the optional -R redundant-tail bound (T10.3).
redundant_until is reference zic’s -R @hi. It is meaningful only with
EmitStyle::ZicSlim: it keeps the otherwise-droppable, footer-governed explicit transitions
out to this UT instant (inclusive), so old readers that ignore the POSIX footer still see correct
timestamps up to that point. It is not fat mode (-b) and not range truncation (-r).
With the fat-style default it is a no-op (everything is kept already). EmitStyle converts into
EmitOptions with redundant_until: None, so callers that don’t use -R are unchanged.
Fields§
§style: EmitStyle§redundant_until: Option<i64>§range: Option<RangeSpec>-r '[@lo][/@hi]' range truncation (T10.4d). A distinct input from
Self::redundant_until — they both inform what is emitted but are never merged: -R widens
what slim keeps, -r reshapes the representable interval (and introduces the -00
“local time unspecified” boundary type(s)). None = no truncation.
Trait Implementations§
Source§impl Clone for EmitOptions
impl Clone for EmitOptions
Source§fn clone(&self) -> EmitOptions
fn clone(&self) -> EmitOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EmitOptions
Source§impl Debug for EmitOptions
impl Debug for EmitOptions
Source§impl Default for EmitOptions
impl Default for EmitOptions
impl Eq for EmitOptions
Source§impl From<EmitStyle> for EmitOptions
impl From<EmitStyle> for EmitOptions
Source§impl PartialEq for EmitOptions
impl PartialEq for EmitOptions
Source§fn eq(&self, other: &EmitOptions) -> bool
fn eq(&self, other: &EmitOptions) -> bool
self and other values to be equal, and is used by ==.