[][src]Struct customasm::util::BigInt

pub struct BigInt {
    pub size: Option<usize>,
    // some fields omitted
}

Fields

size: Option<usize>

Implementations

impl BigInt[src]

pub fn new<T>(bigint: T, size: Option<usize>) -> BigInt where
    T: Into<BigInt>, 
[src]

pub fn new_from_str(s: &str) -> BigInt[src]

pub fn as_string(&self) -> String[src]

pub fn from_bytes_be(bytes: &[u8]) -> BigInt[src]

pub fn set_bit(&self, index: usize, value: bool) -> BigInt[src]

pub fn get_bit(&self, index: usize) -> bool[src]

pub fn min_size(&self) -> usize[src]

pub fn size_or_min_size(&self) -> usize[src]

pub fn sign(&self) -> isize[src]

pub fn checked_to_usize(&self) -> Option<usize>[src]

pub fn checked_div(&self, rhs: &BigInt) -> Option<BigInt>[src]

pub fn checked_rem(&self, rhs: &BigInt) -> Option<BigInt>[src]

pub fn shl(&self, rhs: usize) -> BigInt[src]

pub fn shr(&self, rhs: usize) -> BigInt[src]

pub fn checked_shl(&self, rhs: &BigInt) -> Option<BigInt>[src]

pub fn checked_shr(&self, rhs: &BigInt) -> Option<BigInt>[src]

pub fn concat(
    &self,
    lhs_slice: (usize, usize),
    rhs: &BigInt,
    rhs_slice: (usize, usize)
) -> BigInt
[src]

pub fn slice(&self, left: usize, right: usize) -> BigInt[src]

Trait Implementations

impl<'_> Add<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the + operator.

impl<'_> BitAnd<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the & operator.

impl<'_> BitOr<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the | operator.

impl<'_> BitXor<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the ^ operator.

impl Clone for BigInt[src]

impl Debug for BigInt[src]

impl Eq for BigInt[src]

impl<T: Into<BigInt>> From<T> for BigInt[src]

impl LowerHex for BigInt[src]

impl<'_> Mul<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the * operator.

impl<'_> Neg for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the - operator.

impl<'_> Not for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the ! operator.

impl Ord for BigInt[src]

impl PartialEq<BigInt> for BigInt[src]

impl PartialOrd<BigInt> for BigInt[src]

impl StructuralEq for BigInt[src]

impl StructuralPartialEq for BigInt[src]

impl<'_> Sub<&'_ BigInt> for &'_ BigInt[src]

type Output = BigInt

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for BigInt

impl Send for BigInt

impl Sync for BigInt

impl Unpin for BigInt

impl UnwindSafe for BigInt

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.