From ef24de24a82fe681581cc130f342363c47c0969a Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 7 Jun 2024 07:48:48 +0200 Subject: Merging upstream version 1.75.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/icu_provider/src/datagen/data_conversion.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'vendor/icu_provider/src/datagen/data_conversion.rs') diff --git a/vendor/icu_provider/src/datagen/data_conversion.rs b/vendor/icu_provider/src/datagen/data_conversion.rs index 59146352a..f3ca948e1 100644 --- a/vendor/icu_provider/src/datagen/data_conversion.rs +++ b/vendor/icu_provider/src/datagen/data_conversion.rs @@ -9,16 +9,12 @@ use alloc::boxed::Box; /// A trait that allows for converting between data payloads of different types. /// /// These payloads will typically be some kind of erased payload, either with -/// AnyMarker, BufferMarker, or SerializeMarker, where converting requires reifying the type. +/// [`AnyMarker`], [`BufferMarker`], or [`ExportMarker`](crate::datagen::ExportMarker), where converting +/// requires reifying the type. +/// /// A type implementing [`DataConverter`] will essentially have a "registry" mapping keys to /// concrete marker types M, and reifying the input to a `DataPayload`, performing some conversion /// or computation, and erasing the result to `DataPayload`. -/// -/// It will typically be implemented on data providers used in datagen. -/// -/// The [`make_exportable_provider!`] macro is able to automatically implement this trait. -/// -/// [`make_exportable_provider!`]: crate::make_exportable_provider pub trait DataConverter { /// Attempt to convert a payload corresponding to the given data key /// from one marker type to another marker type. -- cgit v1.2.3