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> { ... } }

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

Required methods

fn write_base32<W: WriteBase32>(
    &self,
    writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
[src]

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

Loading content...

Provided methods

fn to_base32(&self) -> Vec<u5>[src]

Convert Self to base32 vector

Loading content...

Implementors

impl<T: AsRef<[u8]>> ToBase32 for T[src]

Loading content...