#[non_exhaustive]pub enum CoverageLevel {
Modern,
Moderate,
Basic,
}
Expand description
A language’s CLDR coverage level.
In ICU4X, these are disjoint sets: a language belongs to a single coverage level. This contrasts with CLDR usage, where these levels are understood to be additive (i.e., “basic” includes all language with “basic”, or better coverage). The ICU4X semantics allow generating different data files for different coverage levels without duplicating data. However, the data itself is still additive (e.g. for fallback to work correctly), so data for moderate (basic) languages should only be loaded if modern (modern and moderate) data is already present.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Modern
Locales listed as modern coverage targets by the CLDR subcomittee.
This is the highest level of coverage.
Moderate
Locales listed as moderate, but not modern, coverage targets by the CLDR subcomittee.
This is a medium level of coverage.
Basic
Locales listed as basic, but not moderate or modern, coverage targets by the CLDR subcomittee.
This is the lowest level of coverage.
Trait Implementations§
Source§impl Clone for CoverageLevel
impl Clone for CoverageLevel
Source§fn clone(&self) -> CoverageLevel
fn clone(&self) -> CoverageLevel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CoverageLevel
impl Debug for CoverageLevel
Source§impl<'de> Deserialize<'de> for CoverageLevel
impl<'de> Deserialize<'de> for CoverageLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for CoverageLevel
impl Hash for CoverageLevel
Source§impl PartialEq for CoverageLevel
impl PartialEq for CoverageLevel
Source§impl Serialize for CoverageLevel
impl Serialize for CoverageLevel
impl Copy for CoverageLevel
impl Eq for CoverageLevel
impl StructuralPartialEq for CoverageLevel
Auto Trait Implementations§
impl Freeze for CoverageLevel
impl RefUnwindSafe for CoverageLevel
impl Send for CoverageLevel
impl Sync for CoverageLevel
impl Unpin for CoverageLevel
impl UnwindSafe for CoverageLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more