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
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.