macro_rules! impl_data_provider_never_marker { ($ty:path) => { ... }; }
Expand description
Implements DataProvider<NeverMarker<Y>>
on a struct.
For more information, see NeverMarker
.
§Examples
use icu_locid::langid;
use icu_provider::hello_world::*;
use icu_provider::prelude::*;
use icu_provider::NeverMarker;
struct MyProvider;
icu_provider::impl_data_provider_never_marker!(MyProvider);
let result = DataProvider::<NeverMarker<HelloWorldV1<'static>>>::load(
&MyProvider,
DataRequest {
locale: &langid!("und").into(),
metadata: Default::default(),
},
);
assert!(matches!(
result,
Err(DataError {
kind: DataErrorKind::MissingDataKey,
..
})
));