Struct chinese_numerals::ShortScaleInt
source · [−]pub struct ShortScaleInt { /* private fields */ }
Expand description
Short scale integers (下数).
「下数者,十十变之。若言十万曰亿,十亿曰兆,十兆曰京也。」
Implementations
Trait Implementations
sourceimpl Clone for ShortScaleInt
impl Clone for ShortScaleInt
sourcefn clone(&self) -> ShortScaleInt
fn clone(&self) -> ShortScaleInt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShortScaleInt
impl Debug for ShortScaleInt
sourceimpl Default for ShortScaleInt
impl Default for ShortScaleInt
sourcefn default() -> ShortScaleInt
fn default() -> ShortScaleInt
Returns the “default value” for a type. Read more
sourceimpl Display for ShortScaleInt
impl Display for ShortScaleInt
sourceimpl Ord for ShortScaleInt
impl Ord for ShortScaleInt
sourceimpl PartialEq<ShortScaleInt> for ShortScaleInt
impl PartialEq<ShortScaleInt> for ShortScaleInt
sourcefn eq(&self, other: &ShortScaleInt) -> bool
fn eq(&self, other: &ShortScaleInt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ShortScaleInt) -> bool
fn ne(&self, other: &ShortScaleInt) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ShortScaleInt> for ShortScaleInt
impl PartialOrd<ShortScaleInt> for ShortScaleInt
sourcefn partial_cmp(&self, other: &ShortScaleInt) -> Option<Ordering>
fn partial_cmp(&self, other: &ShortScaleInt) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl TryFrom<i128> for ShortScaleInt
impl TryFrom<i128> for ShortScaleInt
sourceimpl TryFrom<i64> for ShortScaleInt
impl TryFrom<i64> for ShortScaleInt
sourceimpl TryFrom<isize> for ShortScaleInt
impl TryFrom<isize> for ShortScaleInt
sourceimpl TryFrom<u128> for ShortScaleInt
impl TryFrom<u128> for ShortScaleInt
sourceimpl TryFrom<u64> for ShortScaleInt
impl TryFrom<u64> for ShortScaleInt
sourceimpl TryFrom<usize> for ShortScaleInt
impl TryFrom<usize> for ShortScaleInt
impl Copy for ShortScaleInt
impl Eq for ShortScaleInt
impl StructuralEq for ShortScaleInt
impl StructuralPartialEq for ShortScaleInt
Auto Trait Implementations
impl RefUnwindSafe for ShortScaleInt
impl Send for ShortScaleInt
impl Sync for ShortScaleInt
impl Unpin for ShortScaleInt
impl UnwindSafe for ShortScaleInt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ChineseNumeral for T where
T: ChineseNumeralBase,
impl<T> ChineseNumeral for T where
T: ChineseNumeralBase,
sourcefn to_lowercase(&self, variant: Variant) -> String
fn to_lowercase(&self, variant: Variant) -> String
Converts the number to lowercase (小写数字, used for normal contexts).
sourcefn to_uppercase(&self, variant: Variant) -> String
fn to_uppercase(&self, variant: Variant) -> String
Converts the number to uppercase (大写数字, used for financial contexts).
sourcefn to_lowercase_simp(&self) -> String
fn to_lowercase_simp(&self) -> String
Converts the number to lowercase (小写数字, used for normal contexts) in simplified Chinese.
sourcefn to_lowercase_trad(&self) -> String
fn to_lowercase_trad(&self) -> String
Converts the number to lowercase (小写数字, used for normal contexts) in traditional Chinese.
sourcefn to_uppercase_simp(&self) -> String
fn to_uppercase_simp(&self) -> String
Converts the number to uppercase (大写数字, used for financial contexts) in simplified Chinese.
sourcefn to_uppercase_trad(&self) -> String
fn to_uppercase_trad(&self) -> String
Converts the number to uppercase (大写数字, used for financial contexts) in traditional Chinese.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more