Trait bech32::ToBase32[][src]

pub trait ToBase32 {
    fn write_base32<W: WriteBase32>(
        &self,
        writer: &mut W
    ) -> Result<(), <W as WriteBase32>::Err>; fn to_base32(&self) -> Vec<u5> { ... } }
Expand description

A trait for converting a value to a type T that represents a u5 slice.

Required methods

Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate.

Provided methods

Convert Self to base32 vector

Implementors