snarkvm_console_algorithms::bech32

Trait Base32Len

Source
pub trait Base32Len: ToBase32 {
    // Required method
    fn base32_len(&self) -> usize;
}
Expand description

Interface to calculate the length of the base32 representation before actually serializing

Required Methods§

Source

fn base32_len(&self) -> usize

Calculate the base32 serialized length

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§

Source§

impl<T> Base32Len for T
where T: AsRef<[u8]>,