Struct icu_provider::any::DowncastingAnyProvider
source · [−]Expand description
A wrapper over AnyProvider
that implements DynamicDataProvider<M>
via downcasting
Tuple Fields
0: &'a P
Trait Implementations
sourceimpl<M, P> DataProvider<M> for DowncastingAnyProvider<'_, P> where
P: AnyProvider + ?Sized,
M: KeyedDataMarker + 'static,
for<'a> YokeTraitHack<<M::Yokeable as Yokeable<'a>>::Output>: Clone,
M::Yokeable: ZeroFrom<'static, M::Yokeable>,
M::Yokeable: MaybeSendSync,
impl<M, P> DataProvider<M> for DowncastingAnyProvider<'_, P> where
P: AnyProvider + ?Sized,
M: KeyedDataMarker + 'static,
for<'a> YokeTraitHack<<M::Yokeable as Yokeable<'a>>::Output>: Clone,
M::Yokeable: ZeroFrom<'static, M::Yokeable>,
M::Yokeable: MaybeSendSync,
sourcefn load(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>
fn load(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>
Query the provider for data, returning the result. Read more
sourceimpl<M, P> DynamicDataProvider<M> for DowncastingAnyProvider<'_, P> where
P: AnyProvider + ?Sized,
M: DataMarker + 'static,
for<'a> YokeTraitHack<<M::Yokeable as Yokeable<'a>>::Output>: Clone,
M::Yokeable: ZeroFrom<'static, M::Yokeable>,
M::Yokeable: MaybeSendSync,
impl<M, P> DynamicDataProvider<M> for DowncastingAnyProvider<'_, P> where
P: AnyProvider + ?Sized,
M: DataMarker + 'static,
for<'a> YokeTraitHack<<M::Yokeable as Yokeable<'a>>::Output>: Clone,
M::Yokeable: ZeroFrom<'static, M::Yokeable>,
M::Yokeable: MaybeSendSync,
sourcefn load_data(
&self,
key: DataKey,
req: DataRequest<'_>
) -> Result<DataResponse<M>, DataError>
fn load_data(
&self,
key: DataKey,
req: DataRequest<'_>
) -> Result<DataResponse<M>, DataError>
Query the provider for data, returning the result. Read more
Auto Trait Implementations
impl<'a, P: ?Sized> RefUnwindSafe for DowncastingAnyProvider<'a, P> where
P: RefUnwindSafe,
impl<'a, P: ?Sized> Send for DowncastingAnyProvider<'a, P> where
P: Sync,
impl<'a, P: ?Sized> Sync for DowncastingAnyProvider<'a, P> where
P: Sync,
impl<'a, P: ?Sized> Unpin for DowncastingAnyProvider<'a, P>
impl<'a, P: ?Sized> UnwindSafe for DowncastingAnyProvider<'a, P> where
P: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more