Trait bech32::FromBase32
source · pub trait FromBase32: Sized {
type Error;
// Required method
fn from_base32(b32: &[u5]) -> Result<Self, Self::Error>;
}
Expand description
Parses/converts base32 slice to Self
.
This trait is the reciprocal of ToBase32
.
Required Associated Types§
Required Methods§
sourcefn from_base32(b32: &[u5]) -> Result<Self, Self::Error>
fn from_base32(b32: &[u5]) -> Result<Self, Self::Error>
Converts a base32 slice to Self
.