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
fn from_bytes(bytes: &[u8]) -> Self
fn from_bytes(bytes: &[u8]) -> Self
Create a BigInt from bytes