Struct nominals::TraditionalChineseFormal
source · pub struct TraditionalChineseFormal(/* private fields */);
Expand description
Traditional Chinese Formal numerical system.
By default, this type formats with myriad counting (ten thousands) and ordinary characters.
This type does not implement the “informal” rules as defined by the CSS standard.
TraditionalChineseFormal
# | TraditionalChineseFormal |
---|---|
0 | 零 |
1 | 一 |
2 | 二 |
… | … |
9 | 九 |
10 | 一十 |
11 | 一十一 |
… | … |
19 | 一十九 |
20 | 二十 |
21 | 二十一 |
… | … |
99 | 九十九 |
100 | 一百 |
101 | 一百零一 |
Implementations§
source§impl TraditionalChineseFormal
impl TraditionalChineseFormal
sourcepub const fn financial(self) -> Self
pub const fn financial(self) -> Self
Returns a variation of this system utilizing financial character variations instead of ordinary characters.
For more information on this distinction, see the Wikipedia section Ordinary Numbers.
sourcepub const fn short_scale(self) -> Self
pub const fn short_scale(self) -> Self
Returns a variation that utilizes the short scale (下數) instead of the myriad scale (萬進).
sourcepub const fn mid_scale(self) -> Self
pub const fn mid_scale(self) -> Self
Returns a variation that utilizes the mid scale (中數) instead of the myriad scale (萬進).
sourcepub const fn long_scale(self) -> Self
pub const fn long_scale(self) -> Self
Returns a variation that utilizes the long scale (上數) instead of the myriad scale (萬進).
Trait Implementations§
source§impl Clone for TraditionalChineseFormal
impl Clone for TraditionalChineseFormal
source§fn clone(&self) -> TraditionalChineseFormal
fn clone(&self) -> TraditionalChineseFormal
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 TraditionalChineseFormal
impl Debug for TraditionalChineseFormal
source§impl Default for TraditionalChineseFormal
impl Default for TraditionalChineseFormal
source§fn default() -> TraditionalChineseFormal
fn default() -> TraditionalChineseFormal
Returns the “default value” for a type. Read more
source§impl<T> NominalSystem<T> for TraditionalChineseFormal
impl<T> NominalSystem<T> for TraditionalChineseFormal
source§fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>
fn try_format_nominal(&self, nominal: T) -> Result<NominalString, Error<T>>
Tries to format
nominal
using this system. Read moresource§fn format_nominal(&self, nominal: T) -> NominalString
fn format_nominal(&self, nominal: T) -> NominalString
Formats
nominal
using this system.source§impl PartialEq for TraditionalChineseFormal
impl PartialEq for TraditionalChineseFormal
source§fn eq(&self, other: &TraditionalChineseFormal) -> bool
fn eq(&self, other: &TraditionalChineseFormal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TraditionalChineseFormal
impl Eq for TraditionalChineseFormal
impl StructuralEq for TraditionalChineseFormal
impl StructuralPartialEq for TraditionalChineseFormal
Auto Trait Implementations§
impl RefUnwindSafe for TraditionalChineseFormal
impl Send for TraditionalChineseFormal
impl Sync for TraditionalChineseFormal
impl Unpin for TraditionalChineseFormal
impl UnwindSafe for TraditionalChineseFormal
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