Expand description
Tooling for the baked provider.
Modules§
- Data stored as slices, looked up with binary search
- A data exporter that bakes the data into Rust code.
- Parsing, manipulating, and serializing Unicode Language and Locale Identifiers.
- This crate provides
Yoke<Y, C>
, which allows one to “yoke” (attach) a zero-copy deserialized object (say, aCow<'a, str>
) to the source it was deserialized from, (say, anRc<[u8]>
), known in this crate as a “cart”, producing a type that looks likeYoke<Cow<'static, str>, Rc<[u8]>>
and can be moved around with impunity. - This crate provides
ZeroFrom
, a trait for converting types in a zero-copy way. - Data stored as as
ZeroTrieSimpleAscii
Macros§
- Creates a data marker.
- Implements required traits on data structs, such as [
MaybeEncodeAsVarULE
].
Structs§
- Invalid character
DynamicDataMarker
for raw buffers. Returned byBufferProvider
.- The error type for ICU4X data provider operations.
- The borrowed version of a
DataIdentifierCow
. - A data identifier identifies a particular version of data, such as “English”.
- A locale type optimized for use in fallbacking and the ICU4X data pipeline.
- An additional key to identify data beyond a
DataLocale
. - Used for loading data from a dynamic ICU4X data provider.
- A container for data payloads returned from a data provider.
- The request type passed into all data provider implementations.
- Metadata for data requests. This is currently empty, but it may be extended with options for tuning locale fallback, buffer layout, and so forth.
- A response object containing an object as payload and metadata about it.
- A response object containing metadata about the returned data.
Enums§
- A list specifying general categories of data provider error.
Traits§
- Blanket-implemented trait adding the
Self::as_deserializing()
function. - A data provider that loads data for a specific data type.
- A data provider that returns opaque bytes.
- A
DynamicDataMarker
with aDataMarkerInfo
attached. - Extension trait for methods on
DataMarker
- A data provider that loads data for a specific
DataMarkerInfo
. - A data provider that can determine whether it can load a particular data identifier, potentially cheaper than actually performing the load.
- Trait marker for data structs. All types delivered by the data provider must be associated with something implementing this trait.
- A data provider that loads data for a specific data type.
- A dynanmic data provider that can determine whether it can load a particular data identifier, potentially cheaper than actually performing the load.
- A
DataProvider
that can iterate over all supportedDataIdentifierCow
s. - A
DynamicDataProvider
that can iterate over all supportedDataIdentifierCow
s for a certain marker. - Extension trait for
Result<T, DataError>
.