#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#[cfg(feature = "enum-ordinalize")]
use enum_ordinalize::Ordinalize;
#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[cfg_attr(feature = "enum-ordinalize", derive(Ordinalize))]
#[repr(u8)]
pub enum ChineseVariant {
Traditional,
Simple,
}
impl ChineseVariant {
#[inline]
pub const fn is_simple(self) -> bool {
matches!(self, ChineseVariant::Simple)
}
#[inline]
pub const fn is_traditional(self) -> bool {
matches!(self, ChineseVariant::Traditional)
}
}