Debian Codegraph @

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

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