pub trait AsBase58<const LEN: usize>: Sized {
// Required methods
fn inner(&self) -> [u8; LEN];
fn from_inner(inner: [u8; LEN]) -> Self;
// Provided methods
fn to_base58_string(&self, base58prefix: u16) -> String { ... }
fn from_base58_string(base58_string: &str) -> Result<(Self, u16), Error> { ... }
}Required Methods§
Provided Methods§
Sourcefn to_base58_string(&self, base58prefix: u16) -> String
fn to_base58_string(&self, base58prefix: u16) -> String
Same as to_ss58check_with_version() method for Ss58Codec from sp_core, comments from sp_core.
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.