[][src]Struct number::integer::Integer

pub struct Integer {
    pub value: BigInt,
}

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_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.

impl Add<Integer> for Rational[src]

type Output = Rational

The resulting type after applying the + operator.

impl Sub<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the - operator.

impl Sub<Integer> for Rational[src]

type Output = Rational

The resulting type after applying the - operator.

impl Mul<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the * operator.

impl Div<Integer> for Integer[src]

type Output = Rational

The resulting type after applying the / operator.

impl Rem<Integer> for Integer[src]

type Output = Integer

The resulting type after applying the % operator.

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]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,