Trait rgb::bech32::ToBech32[][src]

pub trait ToBech32 {
    fn to_bech32(&self) -> Bech32;

    fn to_bech32_string(&self) -> String { ... }
}
Expand description

Trait for types which data can be represented in form of Bech32 string

Required methods

fn to_bech32(&self) -> Bech32[src]

Expand description

Returns Bech32 enum variant for this specific type

Loading content...

Provided methods

fn to_bech32_string(&self) -> String[src]

Expand description

Converts type to it’s Bech32-encoded representation. Default implementation constructs Bech32 object and converts it to string.

Loading content...

Implementors

impl<T> ToBech32 for T where
    T: Into<Bech32> + Clone
[src]

fn to_bech32(&self) -> Bech32[src]

Loading content...