Trait BigUintHelpers

Source
pub trait BigUintHelpers<Rhs = Self> {
    // Required methods
    fn bitlen(&self) -> usize;
    fn from_hex(s: &str) -> Self;
}
Expand description

Helpers for BigUint

Required Methods§

Source

fn bitlen(&self) -> usize

Returns the minimum number of bits required to represent a BigUint As opposed to BigUint::bits, this function returns 1 for the input zero

Source

fn from_hex(s: &str) -> Self

Creates a BigUint from an hexadecimal string in big endian

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BigUintHelpers for BigUint

Source§

fn bitlen(&self) -> usize

Source§

fn from_hex(s: &str) -> Self

Implementors§