Trait icu::datetime::scaffold::MaybePayload

source ·
pub trait MaybePayload<M, Variables>: UnstableSealed{
    // 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§

source

fn new_empty() -> Self

source

fn load_put<P>( &mut self, provider: &P, req: DataRequest<'_>, variables: Variables, ) -> Result<Result<(), DataError>, MaybePayloadError>
where P: BoundDataProvider<M> + ?Sized, Self: Sized,

source

fn get(&self) -> DataPayloadWithVariablesBorrowed<'_, M, Variables>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<M, Variables> MaybePayload<M, Variables> for ()

source§

fn new_empty()

source§

fn load_put<P>( &mut self, _: &P, _: DataRequest<'_>, _: Variables, ) -> Result<Result<(), DataError>, MaybePayloadError>
where P: BoundDataProvider<M> + ?Sized, (): Sized,

source§

fn get(&self) -> DataPayloadWithVariablesBorrowed<'_, M, Variables>

Implementors§

source§

impl<M, Variables> MaybePayload<M, Variables> for DataPayloadWithVariables<M, Variables>
where M: DynamicDataMarker, Variables: PartialEq + Copy,