Debian Codegraph @

debian/rust-vendor/icu_plurals_data/data/mod.rs

raw
1 // @generated
2 include!("plurals_ordinal_v1.rs.data");
3 include!("plurals_cardinal_v1.rs.data");
4 include!("plurals_ranges_v1.rs.data");
5 /// Marks a type as a data provider. You can then use macros like
6 /// `impl_core_helloworld_v1` to add implementations.
7 ///
8 /// ```ignore
9 /// struct MyProvider;
10 /// const _: () = {
11 /// include!("path/to/generated/macros.rs");
12 /// make_provider!(MyProvider);
13 /// impl_core_helloworld_v1!(MyProvider);
14 /// }
15 /// ```
16 #[doc(hidden)]
17 #[macro_export]
18 macro_rules! __make_provider {
19 ($ name : ty) => {
20 #[clippy::msrv = "1.88"]
21 impl $name {
22 #[allow(dead_code)]
23 pub(crate) const MUST_USE_MAKE_PROVIDER_MACRO: () = ();
24 }
25 icu_provider::marker::impl_data_provider_never_marker!($name);
26 };
27 }
28 #[doc(inline)]
29 pub use __make_provider as make_provider;
30 /// This macro requires the following crates:
31 /// * `icu`
32 /// * `icu_provider`
33 /// * `icu_provider/baked`
34 /// * `zerovec`
35 #[allow(unused_macros)]
36 macro_rules! impl_data_provider {
37 ($ provider : ty) => {
38 make_provider!($provider);
39 impl_plurals_ordinal_v1!($provider);
40 impl_plurals_cardinal_v1!($provider);
41 impl_plurals_ranges_v1!($provider);
42 };
43 }