Skip to main content

SupportReport

Struct SupportReport 

Source
pub struct SupportReport {
    pub tzdb_version: Option<String>,
    pub zones_parsed: usize,
    pub links_parsed: usize,
    pub supported_zones: Vec<String>,
    pub unsupported: BTreeMap<String, Bucket>,
    pub links: LinkAccounting,
}
Expand description

The complete frontier map for one source file.

Fields§

§tzdb_version: Option<String>

tzdb release as declared by a leading # version … comment in the source, if any.

§zones_parsed: usize§links_parsed: usize§supported_zones: Vec<String>

Canonical zones that compile, sorted.

§unsupported: BTreeMap<String, Bucket>

Unsupported canonical zones, keyed by a stable bucket label (sorted).

§links: LinkAccounting

Implementations§

Source§

impl SupportReport

Source

pub fn identifiers(&self) -> usize

Total identifiers (canonical zones + links) in the source.

Source

pub fn supported_identifiers(&self) -> usize

Identifiers that ultimately reach a compile-supported zone (supported zones + links to supported zones).

Source

pub fn unsupported_zone_count(&self) -> usize

The number of unsupported zones accounted across all buckets.

Source

pub fn is_fully_accounted(&self) -> bool

Accounting invariant: every parsed zone is in exactly one place.

Source

pub fn largest_bucket(&self) -> Option<(&str, usize)>

The largest unsupported bucket — the “biggest unlock” pointer — as (label, count).

Source

pub fn to_text(&self) -> String

Deterministic human-readable report.

Source

pub fn to_text_explained(&self) -> String

As Self::to_text, plus a ↳ deep law: line under each unsupported bucket mapping it to the zic semantic it represents (the deep_semantic audit map — see docs/zic-deep-semantics.md). Used by support-report --explain-buckets.

Source

pub fn to_json(&self) -> String

Deterministic JSON (hand-rolled, shared escaper — no serde). Full lists, no elision.

Trait Implementations§

Source§

impl Debug for SupportReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.