Struct nominals::SimplifiedChineseFormal
source · pub struct SimplifiedChineseFormal(/* private fields */);
Expand description
Simplified 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.
SimplifiedChineseFormal
# | SimplifiedChineseFormal |
---|---|
0 | 零 |
1 | 一 |
2 | 二 |
… | … |
9 | 九 |
10 | 一十 |
11 | 一十一 |
… | … |
19 | 一十九 |
20 | 二十 |
21 | 二十一 |
… | … |
99 | 九十九 |
100 | 一百 |
101 | 一百零一 |
Implementations§
source§impl SimplifiedChineseFormal
impl SimplifiedChineseFormal
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 SimplifiedChineseFormal
impl Clone for SimplifiedChineseFormal
source§fn clone(&self) -> SimplifiedChineseFormal
fn clone(&self) -> SimplifiedChineseFormal
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 SimplifiedChineseFormal
impl Debug for SimplifiedChineseFormal
source§impl Default for SimplifiedChineseFormal
impl Default for SimplifiedChineseFormal
source§fn default() -> SimplifiedChineseFormal
fn default() -> SimplifiedChineseFormal
Returns the “default value” for a type. Read more
source§impl<T> NominalSystem<T> for SimplifiedChineseFormal
impl<T> NominalSystem<T> for SimplifiedChineseFormal
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 SimplifiedChineseFormal
impl PartialEq for SimplifiedChineseFormal
source§fn eq(&self, other: &SimplifiedChineseFormal) -> bool
fn eq(&self, other: &SimplifiedChineseFormal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SimplifiedChineseFormal
impl Eq for SimplifiedChineseFormal
impl StructuralEq for SimplifiedChineseFormal
impl StructuralPartialEq for SimplifiedChineseFormal
Auto Trait Implementations§
impl RefUnwindSafe for SimplifiedChineseFormal
impl Send for SimplifiedChineseFormal
impl Sync for SimplifiedChineseFormal
impl Unpin for SimplifiedChineseFormal
impl UnwindSafe for SimplifiedChineseFormal
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