Trait icu::datetime::scaffold::MaybePayload
source · pub trait MaybePayload<M, Variables>: UnstableSealedwhere
M: DynamicDataMarker,{
// Required methods
fn new_empty() -> Self;
fn load_put<P>(
&mut self,
provider: &P,
req: DataRequest<'_>,
variables: Variables,
) -> Result<Result<(), DataError>, MaybePayloadError>
where P: BoundDataProvider<M> + ?Sized,
Self: Sized;
fn get(&self) -> DataPayloadWithVariablesBorrowed<'_, M, Variables>;
}
Expand description
A type that may or may not be a DataPayload
and may or may not contain
a value depending on the type parameter Variables
.
Helper trait for DateTimeNamesMarker
.
Required Methods§
fn new_empty() -> Self
fn load_put<P>( &mut self, provider: &P, req: DataRequest<'_>, variables: Variables, ) -> Result<Result<(), DataError>, MaybePayloadError>
fn get(&self) -> DataPayloadWithVariablesBorrowed<'_, M, Variables>
Object Safety§
This trait is not object safe.