[−][src]Trait lnpbp::rgb::bech32::FromBech32
Trait for types that can be reconstructed from Bech32-encoded data tagged with specific HRP
Required methods
pub fn from_bech32(bech32: Bech32) -> Result<Self, Error>
[src]
Unwraps Bech32
enum data into a concrete type, if any, or fails with
Error::WrongType
otherwise
Provided methods
pub fn from_bech32_str(s: &str) -> Result<Self, Error>
[src]
Tries to read Bech32-encoded data from s
argument, checks it's type
and constructs object if HRP corresponds to the type implementing this
trait. Fails with [Error
] type
Implementors
impl<T> FromBech32 for T where
T: TryFrom<Bech32, Error = Error>,
[src]
T: TryFrom<Bech32, Error = Error>,