Trait bech32::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

Calculates the base32 serialized length.

Implementors§

source§

impl<T: AsRef<[u8]> + ?Sized> Base32Len for T