macro_rules! each {
(
$repr:expr,
UTC => $utc:expr,
UNKNOWN => $unknown:expr,
FIXED($offset:ident) => $fixed:expr,
STATIC_TZIF($static_tzif:ident) => $static_tzif_block:expr,
ARC_TZIF($arc_tzif:ident) => $arc_tzif_block:expr,
ARC_POSIX($arc_posix:ident) => $arc_posix_block:expr,
) => { ... };
}
Expand description
A macro for “matching” over the time zone representation variants.
This macro is safe to use.
Note that the ARC_TZIF
and ARC_POSIX
branches are automatically
removed when alloc
isn’t enabled. Users of this macro needn’t handle
the cfg
themselves.