icu_provider::dynutil

Trait UpcastDataPayload

Source
pub trait UpcastDataPayload<M>{
    // Required method
    fn upcast(other: DataPayload<M>) -> DataPayload<Self>;
}
Expand description

Trait to allow conversion from DataPayload<T> to DataPayload<S>.

This trait can be manually implemented in order to enable impl_dynamic_data_provider.

Required Methods§

Source

fn upcast(other: DataPayload<M>) -> DataPayload<Self>

Upcast a DataPayload<T> to a DataPayload<S> where T implements trait S.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<M> UpcastDataPayload<M> for ExportMarker
where M: DynamicDataMarker, M::DataStruct: Sync + Send, for<'a> <M::DataStruct as Yokeable<'a>>::Output: Bake + BakeSize + Serialize + MaybeEncodeAsVarULE + PartialEq,