Struct icu_provider::DataProviderWithMarker
source · pub struct DataProviderWithMarker<M, P> { /* private fields */ }
Expand description
A DataProvider
associated with a specific marker.
Implements BoundDataProvider
.
Implementations§
source§impl<M, P> DataProviderWithMarker<M, P>where
M: DataMarker,
P: DataProvider<M>,
impl<M, P> DataProviderWithMarker<M, P>where
M: DataMarker,
P: DataProvider<M>,
sourcepub const fn new(inner: P) -> Self
pub const fn new(inner: P) -> Self
Creates a DataProviderWithMarker
from a DataProvider
with a DataMarker
.
Trait Implementations§
source§impl<M, M0, Y, P> BoundDataProvider<M0> for DataProviderWithMarker<M, P>where
M: DataMarker<DataStruct = Y>,
M0: DynamicDataMarker<DataStruct = Y>,
Y: for<'a> Yokeable<'a>,
P: DataProvider<M>,
impl<M, M0, Y, P> BoundDataProvider<M0> for DataProviderWithMarker<M, P>where
M: DataMarker<DataStruct = Y>,
M0: DynamicDataMarker<DataStruct = Y>,
Y: for<'a> Yokeable<'a>,
P: DataProvider<M>,
source§fn load_bound(
&self,
req: DataRequest<'_>,
) -> Result<DataResponse<M0>, DataError>
fn load_bound( &self, req: DataRequest<'_>, ) -> Result<DataResponse<M0>, DataError>
Query the provider for data, returning the result. Read more
source§fn bound_marker(&self) -> DataMarkerInfo
fn bound_marker(&self) -> DataMarkerInfo
Returns the
DataMarkerInfo
that this provider uses for loading data.Auto Trait Implementations§
impl<M, P> Freeze for DataProviderWithMarker<M, P>where
P: Freeze,
impl<M, P> RefUnwindSafe for DataProviderWithMarker<M, P>where
P: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, P> Send for DataProviderWithMarker<M, P>
impl<M, P> Sync for DataProviderWithMarker<M, P>
impl<M, P> Unpin for DataProviderWithMarker<M, P>
impl<M, P> UnwindSafe for DataProviderWithMarker<M, P>where
P: UnwindSafe,
M: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more