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

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

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

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

Required methods

fn to_bech32(&self) -> Bech32

Returns Bech32 enum variant for this specific type

Loading content...

Provided methods

fn to_bech32_string(&self) -> String

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]

Loading content...