Trait bech32::FromBase32[][src]

pub trait FromBase32: Sized {
    type Err;
    fn from_base32(b32: &[u5]) -> Result<Self, Self::Err>;
}

Parse/convert base32 slice to Self. It is the reciprocal of ToBase32.

Associated Types

type Err[src]

The associated error which can be returned from parsing (e.g. because of bad padding).

Loading content...

Required methods

fn from_base32(b32: &[u5]) -> Result<Self, Self::Err>[src]

Convert a base32 slice to Self.

Loading content...

Implementations on Foreign Types

impl FromBase32 for Vec<u8>[src]

type Err = Error

fn from_base32(b32: &[u5]) -> Result<Self, Self::Err>[src]

Convert base32 to base256, removes null-padding if present, returns Err(Error::InvalidPadding) if padding bits are unequal 0

Loading content...

Implementors

Loading content...