@@ -81,7 +81,7 @@ pub struct SourceDataProvider {
81
81
segmenter_lstm_paths : Option < Arc < SerdeCache > > ,
82
82
tzdb_paths : Option < Arc < TzdbCache > > ,
83
83
trie_type : TrieType ,
84
- collation_han_database : CollationHanDatabase ,
84
+ collation_root_han : CollationRootHan ,
85
85
pub ( crate ) timezone_horizon : Date < Iso > ,
86
86
#[ allow( clippy:: type_complexity) ] // not as complex as it appears
87
87
requests_cache : Arc <
@@ -155,7 +155,7 @@ impl SourceDataProvider {
155
155
tzdb_paths : None ,
156
156
trie_type : Default :: default ( ) ,
157
157
timezone_horizon : Date :: try_new_iso ( 2015 , 1 , 1 ) . unwrap ( ) ,
158
- collation_han_database : Default :: default ( ) ,
158
+ collation_root_han : Default :: default ( ) ,
159
159
requests_cache : Default :: default ( ) ,
160
160
}
161
161
}
@@ -340,10 +340,10 @@ impl SourceDataProvider {
340
340
}
341
341
}
342
342
343
- /// Set the [`CollationHanDatabase `] version.
344
- pub fn with_collation_han_database ( self , collation_han_database : CollationHanDatabase ) -> Self {
343
+ /// Set the [`CollationRootHan `] version.
344
+ pub fn with_collation_root_han ( self , collation_root_han : CollationRootHan ) -> Self {
345
345
Self {
346
- collation_han_database ,
346
+ collation_root_han ,
347
347
..self
348
348
}
349
349
}
@@ -366,8 +366,8 @@ impl SourceDataProvider {
366
366
self . trie_type
367
367
}
368
368
369
- fn collation_han_database ( & self ) -> CollationHanDatabase {
370
- self . collation_han_database
369
+ fn collation_root_han ( & self ) -> CollationRootHan {
370
+ self . collation_root_han
371
371
}
372
372
373
373
/// List the locales for the given CLDR coverage levels
@@ -476,7 +476,7 @@ where
476
476
/// <https://github.com/unicode-org/icu/blob/main/docs/userguide/icu::data/buildtool.md#collation-ucadata>
477
477
#[ derive( Debug , Copy , Clone , PartialEq , Eq , Default , serde:: Serialize , serde:: Deserialize ) ]
478
478
#[ non_exhaustive]
479
- pub enum CollationHanDatabase {
479
+ pub enum CollationRootHan {
480
480
/// Implicit
481
481
#[ serde( rename = "implicit" ) ]
482
482
#[ default]
@@ -486,11 +486,11 @@ pub enum CollationHanDatabase {
486
486
Unihan ,
487
487
}
488
488
489
- impl std:: fmt:: Display for CollationHanDatabase {
489
+ impl std:: fmt:: Display for CollationRootHan {
490
490
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> Result < ( ) , std:: fmt:: Error > {
491
491
match self {
492
- CollationHanDatabase :: Implicit => write ! ( f, "implicithan" ) ,
493
- CollationHanDatabase :: Unihan => write ! ( f, "unihan" ) ,
492
+ CollationRootHan :: Implicit => write ! ( f, "implicithan" ) ,
493
+ CollationRootHan :: Unihan => write ! ( f, "unihan" ) ,
494
494
}
495
495
}
496
496
}
0 commit comments