Struct bech32::Bech32 [] [src]

pub struct Bech32 { /* fields omitted */ }

Grouping structure for the human-readable part and the data part of decoded Bech32 string.

Methods

impl Bech32
[src]

[src]

Constructs a Bech32 struct if the result can be encoded as a bech32 string.

[src]

Returns the human readable part

[src]

Returns the data part as [u8] but only using 5 bits per byte

[src]

Destructures the Bech32 struct into its parts

Trait Implementations

impl PartialEq for Bech32
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Bech32
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Bech32
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Bech32
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for Bech32
[src]

The associated error which can be returned from parsing.

[src]

Decode from a string

Auto Trait Implementations

impl Send for Bech32

impl Sync for Bech32