[−][src]Struct customasm::util::BigInt
Fields
size: Option<usize>
Implementations
impl BigInt
[src]
pub fn new<T>(bigint: T, size: Option<usize>) -> BigInt where
T: Into<BigInt>,
[src]
T: Into<BigInt>,
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]
&self,
lhs_slice: (usize, usize),
rhs: &BigInt,
rhs_slice: (usize, usize)
) -> BigInt
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.
pub fn add(self, rhs: &BigInt) -> Self::Output
[src]
impl<'_> BitAnd<&'_ BigInt> for &'_ BigInt
[src]
type Output = BigInt
The resulting type after applying the &
operator.
pub fn bitand(self, rhs: &BigInt) -> Self::Output
[src]
impl<'_> BitOr<&'_ BigInt> for &'_ BigInt
[src]
type Output = BigInt
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: &BigInt) -> Self::Output
[src]
impl<'_> BitXor<&'_ BigInt> for &'_ BigInt
[src]
type Output = BigInt
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: &BigInt) -> Self::Output
[src]
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.
pub fn mul(self, rhs: &BigInt) -> Self::Output
[src]
impl<'_> Neg for &'_ BigInt
[src]
type Output = BigInt
The resulting type after applying the -
operator.
pub fn neg(self) -> Self::Output
[src]
impl<'_> Not for &'_ BigInt
[src]
type Output = BigInt
The resulting type after applying the !
operator.
pub fn not(self) -> Self::Output
[src]
impl Ord for BigInt
[src]
pub fn cmp(&self, rhs: &BigInt) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<BigInt> for BigInt
[src]
impl PartialOrd<BigInt> for BigInt
[src]
pub fn partial_cmp(&self, rhs: &BigInt) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for BigInt
[src]
impl StructuralPartialEq for BigInt
[src]
impl<'_> Sub<&'_ BigInt> for &'_ BigInt
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,