Attribute Macro icu_provider::data_struct[][src]

#[data_struct]
Expand description

The #[data_struct] attribute should be applied to all types intended for use in a DataStruct. It does the following things:

  • Apply #[derive(Yokeable, ZeroCopyFrom)]. The ZeroCopyFrom derive can be customized with #[yoke(cloning_zcf)] as needed
  • Create a FooMarker struct for the type
  • Implement icu_provider::DataMarker for FooMarker