[][src]Trait bech32::CheckBase32

pub trait CheckBase32<T: AsRef<[u5]>> {
    type Err;
    fn check_base32(self) -> Result<T, Self::Err>;
}

A trait to convert between u8 arrays and u5 arrays without changing the content of the elements, but checking that they are in range.

Associated Types

type Err

Error type if conversion fails

Loading content...

Required methods

fn check_base32(self) -> Result<T, Self::Err>

Check if all values are in range and return array-like struct of u5 values

Loading content...

Implementors

impl<'f, T: AsRef<[u8]>> CheckBase32<Vec<u5>> for T
[src]

type Err = Error

Loading content...