pub enum EmitStyle {
Default,
ZicSlim,
ZicFat,
}Expand description
Explicit-transition emission style (campaign T8-slim). This is an emission policy — it
never changes behaviour (every mode is zdump-equivalent: the POSIX footer governs the tail
identically); it only changes how many explicit transitions are written before the footer
takes over.
EmitStyle::Default— zic-rs’s behaviour-matched output: explicit transitions expanded throughRECUR_HI. This is the CORE.1-gated default and is never altered by this enum.EmitStyle::ZicSlim— reproduce referencezic’s slim (-b slim) output: drop the footer-governed recurring tail, keeping explicit transitions only up to the first footer-governed (recurring) transition (zic.c’skeep_at_max = TZstarttime). Byte parity is claimed only in this mode, never for the default.EmitStyle::ZicFat— referencezic’s fat (-b fat) policy. zic-rs’s default emission is already fat-style, so this currently aliasesEmitStyle::Default; kept distinct so the CLI surface matcheszicand a future redundant-tail refinement has a home.
Variants§
Default
Behaviour-matched default (fat-ish, CORE.1-gated). Never altered.
ZicSlim
Reference zic slim: truncate the footer-governed recurring tail.
ZicFat
Reference zic fat (currently == EmitStyle::Default).
Trait Implementations§
impl Copy for EmitStyle
impl Eq for EmitStyle
Source§impl From<EmitStyle> for EmitOptions
impl From<EmitStyle> for EmitOptions
Source§impl From<EmitStyleArg> for EmitStyle
impl From<EmitStyleArg> for EmitStyle
Source§fn from(a: EmitStyleArg) -> Self
fn from(a: EmitStyleArg) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for EmitStyle
Auto Trait Implementations§
impl Freeze for EmitStyle
impl RefUnwindSafe for EmitStyle
impl Send for EmitStyle
impl Sync for EmitStyle
impl Unpin for EmitStyle
impl UnsafeUnpin for EmitStyle
impl UnwindSafe for EmitStyle
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