DisplayBaid64

Trait DisplayBaid64 

Source
pub trait DisplayBaid64<const LEN: usize = 32> {
    const HRI: &'static str;
    const CHUNKING: bool;
    const PREFIX: bool;
    const EMBED_CHECKSUM: bool;
    const MNEMONIC: bool;
    const CHUNK_FIRST: usize = 8usize;
    const CHUNK_LEN: usize = 7usize;

    // Required method
    fn to_baid64_payload(&self) -> [u8; LEN];

    // Provided methods
    fn to_baid64_string(&self) -> String { ... }
    fn to_baid64_mnemonic(&self) -> String { ... }
    fn display_baid64(&self) -> Baid64Display<LEN> { ... }
    fn fmt_baid64(&self, f: &mut Formatter<'_>) -> Result { ... }
}

Required Associated Constants§

Provided Associated Constants§

Source

const CHUNK_FIRST: usize = 8usize

Source

const CHUNK_LEN: usize = 7usize

Required Methods§

Provided Methods§

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.

Implementors§