Struct nominals::TraditionalChineseInformal
source · pub struct TraditionalChineseInformal(/* private fields */);
Expand description
Traditional 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.
Implementations§
source§impl TraditionalChineseInformal
impl TraditionalChineseInformal
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 TraditionalChineseInformal
impl Clone for TraditionalChineseInformal
source§fn clone(&self) -> TraditionalChineseInformal
fn clone(&self) -> TraditionalChineseInformal
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 TraditionalChineseInformal
impl Debug for TraditionalChineseInformal
source§impl Default for TraditionalChineseInformal
impl Default for TraditionalChineseInformal
source§fn default() -> TraditionalChineseInformal
fn default() -> TraditionalChineseInformal
Returns the “default value” for a type. Read more
source§impl<T> NominalSystem<T> for TraditionalChineseInformal
impl<T> NominalSystem<T> for TraditionalChineseInformal
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 TraditionalChineseInformal
impl PartialEq for TraditionalChineseInformal
source§fn eq(&self, other: &TraditionalChineseInformal) -> bool
fn eq(&self, other: &TraditionalChineseInformal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TraditionalChineseInformal
impl Eq for TraditionalChineseInformal
impl StructuralEq for TraditionalChineseInformal
impl StructuralPartialEq for TraditionalChineseInformal
Auto Trait Implementations§
impl RefUnwindSafe for TraditionalChineseInformal
impl Send for TraditionalChineseInformal
impl Sync for TraditionalChineseInformal
impl Unpin for TraditionalChineseInformal
impl UnwindSafe for TraditionalChineseInformal
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