[−][src]Struct number::integer::Integer
Fields
value: BigInt
Methods
impl Integer
[src]
pub fn new(integer: &str) -> Integer
[src]
pub fn from_base(literal: &str, base: u32) -> Integer
[src]
pub fn from_x(s: &str) -> Integer
[src]
pub fn from_o(s: &str) -> Integer
[src]
pub fn from_b(s: &str) -> Integer
[src]
Trait Implementations
impl<'_> From<&'_ str> for Integer
[src]
impl From<i32> for Integer
[src]
impl From<BigInt> for Integer
[src]
impl From<Integer> for Rational
[src]
impl PartialEq<Integer> for Integer
[src]
impl PartialEq<i32> for Integer
[src]
impl Clone for Integer
[src]
fn clone(&self) -> Integer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Integer
[src]
impl Debug for Integer
[src]
impl Add<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the +
operator.
fn add(self, other: Integer) -> Integer
[src]
impl Add<Integer> for Rational
[src]
type Output = Rational
The resulting type after applying the +
operator.
fn add(self, other: Integer) -> Self::Output
[src]
impl Sub<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the -
operator.
fn sub(self, other: Integer) -> Integer
[src]
impl Sub<Integer> for Rational
[src]
type Output = Rational
The resulting type after applying the -
operator.
fn sub(self, other: Integer) -> Self::Output
[src]
impl Mul<Integer> for Integer
[src]
type Output = Integer
The resulting type after applying the *
operator.
fn mul(self, other: Integer) -> Integer
[src]
impl Div<Integer> for Integer
[src]
type Output = Rational
The resulting type after applying the /
operator.
fn div(self, other: Integer) -> Rational
[src]
impl Rem<Integer> for Integer
[src]
Auto Trait Implementations
impl Unpin for Integer
impl Sync for Integer
impl Send for Integer
impl RefUnwindSafe for Integer
impl UnwindSafe for Integer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,