Debian Codegraph @

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

raw
1 // @generated
2 include!("calendar_preferred_v1.rs.data");
3 include!("calendar_japanese_modern_v1.rs.data");
4 include!("calendar_week_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_locale_core`
33 /// * `icu_provider`
34 /// * `icu_provider/baked`
35 #[allow(unused_macros)]
36 macro_rules! impl_data_provider {
37 ($ provider : ty) => {
38 make_provider!($provider);
39 impl_calendar_preferred_v1!($provider);
40 impl_calendar_japanese_modern_v1!($provider);
41 impl_calendar_week_v1!($provider);
42 };
43 }