pub trait PrintForLog<T: TryFrom<Vec<u8>>> {
// Required methods
fn to_base58(&self) -> String;
fn to_hex(&self) -> String;
fn from_hex(str: &str) -> Result<T, String>;
fn from_base58(str: &str) -> Result<T, String>;
}
Required Methods§
fn to_base58(&self) -> String
fn to_hex(&self) -> String
fn from_hex(str: &str) -> Result<T, String>
fn from_base58(str: &str) -> Result<T, String>
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.