Enum chinese_variant::ChineseVariant
source · #[repr(u8)]pub enum ChineseVariant {
Traditional = 0,
Simple = 1,
}
Expand description
The different writing systems used for the Chinese language. Traditional Chinese (繁體中文) or Simple Chinese (简体中文).
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ChineseVariant
impl Clone for ChineseVariant
source§fn clone(&self) -> ChineseVariant
fn clone(&self) -> ChineseVariant
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChineseVariant
impl Debug for ChineseVariant
source§impl Hash for ChineseVariant
impl Hash for ChineseVariant
source§impl Ordinalize for ChineseVariant
impl Ordinalize for ChineseVariant
§type VariantType = u8
type VariantType = u8
The type of the values of the variants.
source§const VARIANT_COUNT: usize = 2usize
const VARIANT_COUNT: usize = 2usize
The count of variants.
source§unsafe fn from_ordinal_unsafe(number: u8) -> Self
unsafe fn from_ordinal_unsafe(number: u8) -> Self
Obtain a variant based on an integer number. Read more
source§fn from_ordinal(number: u8) -> Option<Self>
fn from_ordinal(number: u8) -> Option<Self>
Obtain a variant based on an integer number.
source§impl PartialEq for ChineseVariant
impl PartialEq for ChineseVariant
source§fn eq(&self, other: &ChineseVariant) -> bool
fn eq(&self, other: &ChineseVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChineseVariant
impl Eq for ChineseVariant
impl StructuralEq for ChineseVariant
impl StructuralPartialEq for ChineseVariant
Auto Trait Implementations§
impl RefUnwindSafe for ChineseVariant
impl Send for ChineseVariant
impl Sync for ChineseVariant
impl Unpin for ChineseVariant
impl UnwindSafe for ChineseVariant
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
Mutably borrows from an owned value. Read more