[][src]Struct subtle_encoding::bech32::Bech32

pub struct Bech32 {
    pub charset: [char; 32],
    pub charset_inverse: [Option<u8>; 128],
    pub separator: char,
}

Bech32 encoder/decoder

Fields

Encoding character set

Inverse alphabet used to decode

Separator between the human readable and base32-encoded parts of a Bech32 string

Methods

impl Bech32
[src]

Decode lower case Bech32 strings

Decode upper case Bech32 strings

Create a Bech32 encoder with the given separator character

Panics if the separator character is invalid

Return the separator character currently in use

Encode a bech32 string from a human-readable part (hrp) and binary data

Decode a bech32 string to a human-readable part (HRP) and binary data

Trait Implementations

impl Default for Bech32
[src]

Auto Trait Implementations

impl Send for Bech32

impl Sync for Bech32

Blanket Implementations

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]