Struct nominals::SimplifiedChineseInformal
source · pub struct SimplifiedChineseInformal(/* private fields */);
Expand description
Simplified Chinese Informal numerical system.
By default, this type formats with myriad counting (ten thousands) and ordinary characters.
This type performs the “informal” rules as defined by the CSS standard. This allows the tens digit to be omitted in some situations.
SimplifiedChineseInformal
# | SimplifiedChineseInformal |
---|---|
0 | 零 |
1 | 一 |
2 | 二 |
… | … |
9 | 九 |
10 | 十 |
11 | 十一 |
… | … |
19 | 十九 |
20 | 二十 |
21 | 二十一 |
… | … |
99 | 九十九 |
100 | 一百 |
101 | 一百零一 |
Implementations§
source§impl SimplifiedChineseInformal
impl SimplifiedChineseInformal
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 SimplifiedChineseInformal
impl Clone for SimplifiedChineseInformal
source§fn clone(&self) -> SimplifiedChineseInformal
fn clone(&self) -> SimplifiedChineseInformal
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 SimplifiedChineseInformal
impl Debug for SimplifiedChineseInformal
source§impl Default for SimplifiedChineseInformal
impl Default for SimplifiedChineseInformal
source§fn default() -> SimplifiedChineseInformal
fn default() -> SimplifiedChineseInformal
Returns the “default value” for a type. Read more
source§impl<T> NominalSystem<T> for SimplifiedChineseInformal
impl<T> NominalSystem<T> for SimplifiedChineseInformal
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 SimplifiedChineseInformal
impl PartialEq for SimplifiedChineseInformal
source§fn eq(&self, other: &SimplifiedChineseInformal) -> bool
fn eq(&self, other: &SimplifiedChineseInformal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SimplifiedChineseInformal
impl Eq for SimplifiedChineseInformal
impl StructuralEq for SimplifiedChineseInformal
impl StructuralPartialEq for SimplifiedChineseInformal
Auto Trait Implementations§
impl RefUnwindSafe for SimplifiedChineseInformal
impl Send for SimplifiedChineseInformal
impl Sync for SimplifiedChineseInformal
impl Unpin for SimplifiedChineseInformal
impl UnwindSafe for SimplifiedChineseInformal
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