pub trait Converter {
// Required methods
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§
Sourcefn from_bytes(bytes: &[u8]) -> Self
fn from_bytes(bytes: &[u8]) -> Self
Create a BigInt from bytes
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.