icu_provider::marker

Trait DataMarkerExt

Source
pub trait DataMarkerExt: DataMarker + Sized {
    // Required methods
    fn bind<P>(provider: P) -> DataProviderWithMarker<Self, P>
       where P: DataProvider<Self>;
    fn make_locale(locale: LocalePreferences) -> DataLocale;
}
Expand description

Extension trait for methods on DataMarker

Required Methods§

Source

fn bind<P>(provider: P) -> DataProviderWithMarker<Self, P>
where P: DataProvider<Self>,

Binds a DataMarker to a provider supporting it.

Source

fn make_locale(locale: LocalePreferences) -> DataLocale

Constructs a DataLocale using fallback preferences from this DataMarker.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§