Trait rust_bigint::traits::Converter[][src]

pub trait Converter {
    fn to_vec(n: &Self) -> Vec<u8>;
fn to_hex(&self) -> String;
fn from_hex(n: &str) -> Result<BigInt, HexError>;
fn from_bytes(bytes: &[u8]) -> Self;
fn to_bytes(&self) -> Vec<u8>; }
Expand description

Convert BigInt to and from various formats

Required methods

Convert BigInt to Vec<u8>

Convert BigInt to a hex string

Create a BigInt from a hex String

Create a BigInt from bytes

Convert a BigInt to bytes

Implementations on Foreign Types

Implementors