2 releases

new 2.0.0-beta2 Feb 26, 2025
2.0.0-beta1 Nov 23, 2024

#457 in Internationalization (i18n)

32 downloads per month
Used in 3 crates (2 directly)

Unicode-3.0

29KB
310 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_ty:ty:$marker:ident,)+ #[experimental] $($emarker_ty:ty:$emarker:ident,)+) => {
        // 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_ty:ty:$marker:ident,)+ #[experimental] $($emarker_ty:ty:$emarker:ident,)+) => {
        // Do something for each marker, or each experimental marker
    };
}

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

No runtime deps