Struct chinese_numerals::LongScaleBigInt
source · [−]pub struct LongScaleBigInt { /* private fields */ }
Expand description
Long 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 long scale are included.
Implementations
Trait Implementations
sourceimpl Clone for LongScaleBigInt
impl Clone for LongScaleBigInt
sourcefn clone(&self) -> LongScaleBigInt
fn clone(&self) -> LongScaleBigInt
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 LongScaleBigInt
impl Debug for LongScaleBigInt
sourceimpl Default for LongScaleBigInt
impl Default for LongScaleBigInt
sourcefn default() -> LongScaleBigInt
fn default() -> LongScaleBigInt
Returns the “default value” for a type. Read more
sourceimpl Display for LongScaleBigInt
impl Display for LongScaleBigInt
sourceimpl Ord for LongScaleBigInt
impl Ord for LongScaleBigInt
sourceimpl PartialEq<LongScaleBigInt> for LongScaleBigInt
impl PartialEq<LongScaleBigInt> for LongScaleBigInt
sourcefn eq(&self, other: &LongScaleBigInt) -> bool
fn eq(&self, other: &LongScaleBigInt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LongScaleBigInt) -> bool
fn ne(&self, other: &LongScaleBigInt) -> bool
This method tests for !=
.
sourceimpl PartialOrd<LongScaleBigInt> for LongScaleBigInt
impl PartialOrd<LongScaleBigInt> for LongScaleBigInt
sourcefn partial_cmp(&self, other: &LongScaleBigInt) -> Option<Ordering>
fn partial_cmp(&self, other: &LongScaleBigInt) -> 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 LongScaleBigInt
impl TryFrom<&'_ BigInt> for LongScaleBigInt
sourceimpl TryFrom<&'_ BigUint> for LongScaleBigInt
impl TryFrom<&'_ BigUint> for LongScaleBigInt
sourceimpl TryFrom<BigInt> for LongScaleBigInt
impl TryFrom<BigInt> for LongScaleBigInt
sourceimpl TryFrom<BigUint> for LongScaleBigInt
impl TryFrom<BigUint> for LongScaleBigInt
impl Eq for LongScaleBigInt
impl StructuralEq for LongScaleBigInt
impl StructuralPartialEq for LongScaleBigInt
Auto Trait Implementations
impl RefUnwindSafe for LongScaleBigInt
impl Send for LongScaleBigInt
impl Sync for LongScaleBigInt
impl Unpin for LongScaleBigInt
impl UnwindSafe for LongScaleBigInt
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