Struct icu::datetime::scaffold::DataPayloadWithVariables
source · pub struct DataPayloadWithVariables<M, Variables>where
M: DynamicDataMarker,{ /* private fields */ }
Expand description
An implementation of MaybePayload
that wraps an optional DataPayload
,
parameterized by Variables
.
Trait Implementations§
source§impl<M, Variables> Debug for DataPayloadWithVariables<M, Variables>
impl<M, Variables> Debug for DataPayloadWithVariables<M, Variables>
source§impl<M, Variables> From<()> for DataPayloadWithVariables<M, Variables>where
M: DynamicDataMarker,
impl<M, Variables> From<()> for DataPayloadWithVariables<M, Variables>where
M: DynamicDataMarker,
source§fn from(_: ()) -> DataPayloadWithVariables<M, Variables>
fn from(_: ()) -> DataPayloadWithVariables<M, Variables>
Converts to this type from the input type.
source§impl<M, Variables> MaybePayload<M, Variables> for DataPayloadWithVariables<M, Variables>
impl<M, Variables> MaybePayload<M, Variables> for DataPayloadWithVariables<M, Variables>
fn new_empty() -> DataPayloadWithVariables<M, Variables>
fn load_put<P>( &mut self, provider: &P, req: DataRequest<'_>, variables: Variables, ) -> Result<Result<(), DataError>, MaybePayloadError>
fn get(&self) -> DataPayloadWithVariablesBorrowed<'_, M, Variables>
impl<M, Variables> UnstableSealed for DataPayloadWithVariables<M, Variables>where
M: DynamicDataMarker,
Auto Trait Implementations§
impl<M, Variables> Freeze for DataPayloadWithVariables<M, Variables>
impl<M, Variables> RefUnwindSafe for DataPayloadWithVariables<M, Variables>
impl<M, Variables> Send for DataPayloadWithVariables<M, Variables>
impl<M, Variables> Sync for DataPayloadWithVariables<M, Variables>
impl<M, Variables> Unpin for DataPayloadWithVariables<M, Variables>
impl<M, Variables> UnwindSafe for DataPayloadWithVariables<M, Variables>
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