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]

Constructs a Bech32 struct if the result can be encoded as a bech32 string. It uses data that is not range checked yet and as a result may return Err(Error::InvalidData).

This function currently allocates memory for the checked data part. See issue #19.

[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

[src]

Parses a Bech32 string but without enforcing the 90 character limit (for lightning BOLT 11).

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 Eq for Bech32
[src]

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 PartialOrd for Bech32
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Bech32
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Bech32
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. 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