#marker #registry #icu4x #icu #data #list #expose

icu_provider_registry

A registry of all ICU4X data markers

1 release (0 unstable)

new 2.0.0-beta1 Nov 23, 2024

#444 in Internationalization (i18n)


Used in 3 crates (2 directly)

Unicode-3.0

31KB
316 lines

icu_provider_registry crates.io

Exposes the list of all known DataMarkers.

This is modeled as a macro that accepts a callback macro of the shape:

macro_rules! cb {
    ($($marker:path = $path:literal,)+ #[experimental] $($emarker:path = $epath:literal,)+) => {
        // Do something for each marker, or each experimental marker
    };
}

Calling this as registry!(cb); evaluates cb with the list of markers.

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.


lib.rs:

Exposes the list of all known DataMarkers.

This is modeled as a macro that accepts a callback macro of the shape:

macro_rules! cb {
    ($($marker:path = $path:literal,)+ #[experimental] $($emarker:path = $epath:literal,)+) => {
        // Do something for each marker, or each experimental marker
    };
}

Calling this as registry!(cb); evaluates cb with the list of markers.

No runtime deps