[][src]Trait num::bigint::ToBigInt

pub trait ToBigInt {
    fn to_bigint(&self) -> Option<BigInt>;
}

A generic trait for converting a value to a BigInt. This may return None when converting from f32 or f64, and will always succeed when converting from any integer or unsigned primitive, or BigUint.

Required methods

fn to_bigint(&self) -> Option<BigInt>

Converts the value of self to a BigInt.

Loading content...

Implementations on Foreign Types

impl ToBigInt for usize[src]

impl ToBigInt for u64[src]

impl ToBigInt for u8[src]

impl ToBigInt for i128[src]

impl ToBigInt for i8[src]

impl ToBigInt for u16[src]

impl ToBigInt for i64[src]

impl ToBigInt for i32[src]

impl ToBigInt for isize[src]

impl ToBigInt for i16[src]

impl ToBigInt for u128[src]

impl ToBigInt for f32[src]

impl ToBigInt for u32[src]

impl ToBigInt for f64[src]

Loading content...

Implementors

impl ToBigInt for BigInt[src]

impl ToBigInt for BigUint[src]

Loading content...