Struct chinese_numerals::MyriadScaleBigInt
source · [−]pub struct MyriadScaleBigInt { /* private fields */ }
Expand description
Myriad scale big integers (万进).
Use it by turning on feature “bigint”. It uses BigUint
to store the absolute value. Therefore, all integers that can be expressed in myriad scale are included.
Implementations
Trait Implementations
sourceimpl Clone for MyriadScaleBigInt
impl Clone for MyriadScaleBigInt
sourcefn clone(&self) -> MyriadScaleBigInt
fn clone(&self) -> MyriadScaleBigInt
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 MyriadScaleBigInt
impl Debug for MyriadScaleBigInt
sourceimpl Default for MyriadScaleBigInt
impl Default for MyriadScaleBigInt
sourcefn default() -> MyriadScaleBigInt
fn default() -> MyriadScaleBigInt
Returns the “default value” for a type. Read more
sourceimpl Display for MyriadScaleBigInt
impl Display for MyriadScaleBigInt
sourceimpl Ord for MyriadScaleBigInt
impl Ord for MyriadScaleBigInt
sourceimpl PartialEq<MyriadScaleBigInt> for MyriadScaleBigInt
impl PartialEq<MyriadScaleBigInt> for MyriadScaleBigInt
sourcefn eq(&self, other: &MyriadScaleBigInt) -> bool
fn eq(&self, other: &MyriadScaleBigInt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MyriadScaleBigInt) -> bool
fn ne(&self, other: &MyriadScaleBigInt) -> bool
This method tests for !=
.
sourceimpl PartialOrd<MyriadScaleBigInt> for MyriadScaleBigInt
impl PartialOrd<MyriadScaleBigInt> for MyriadScaleBigInt
sourcefn partial_cmp(&self, other: &MyriadScaleBigInt) -> Option<Ordering>
fn partial_cmp(&self, other: &MyriadScaleBigInt) -> 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<&'_ BigInt> for MyriadScaleBigInt
impl TryFrom<&'_ BigInt> for MyriadScaleBigInt
sourceimpl TryFrom<&'_ BigUint> for MyriadScaleBigInt
impl TryFrom<&'_ BigUint> for MyriadScaleBigInt
sourceimpl TryFrom<BigInt> for MyriadScaleBigInt
impl TryFrom<BigInt> for MyriadScaleBigInt
sourceimpl TryFrom<BigUint> for MyriadScaleBigInt
impl TryFrom<BigUint> for MyriadScaleBigInt
impl Eq for MyriadScaleBigInt
impl StructuralEq for MyriadScaleBigInt
impl StructuralPartialEq for MyriadScaleBigInt
Auto Trait Implementations
impl RefUnwindSafe for MyriadScaleBigInt
impl Send for MyriadScaleBigInt
impl Sync for MyriadScaleBigInt
impl Unpin for MyriadScaleBigInt
impl UnwindSafe for MyriadScaleBigInt
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