File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ pub enum TrieType {
32
32
/// A trait representing the values stored in the data array of a [`CodePointTrie`].
33
33
/// This trait is used as a type parameter in constructing a `CodePointTrie`.
34
34
pub trait TrieValue : Copy + zerovec:: ule:: AsULE + ' static {
35
+ /// The value to return if we cannot read data from the trie.
35
36
const DATA_GET_ERROR_VALUE : Self ;
36
37
}
37
38
Original file line number Diff line number Diff line change 2
2
// called LICENSE at the top level of the ICU4X source tree
3
3
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
4
5
+ //! Data provider struct definitions for this ICU4X component.
6
+ //!
7
+ //! Read more about data providers: [`icu_provider`]
8
+
5
9
use crate :: codepointtrie:: { CodePointTrie , TrieValue } ;
6
10
use icu_provider:: yoke:: { self , Yokeable , ZeroCopyFrom } ;
7
11
12
+ /// A map efficiently storing data about individual characters.
8
13
#[ derive( Yokeable , ZeroCopyFrom ) ]
9
14
pub struct UnicodePropertyMapV1 < ' data , T : TrieValue > {
15
+ /// A codepoint trie storing the data
10
16
pub codepoint_trie : CodePointTrie < ' data , T > ,
11
17
}
12
18
19
+ /// Marker type for UnicodePropertyMapV1.
20
+ /// This is generated by hand because icu_provider::data_struct doesn't support generics yet.
13
21
pub struct UnicodePropertyMapV1Marker < T : TrieValue > {
14
22
_phantom : core:: marker:: PhantomData < T > ,
15
23
}
You can’t perform that action at this time.
0 commit comments