pub trait FromBech32: Sized + for<'a> TryFrom<&'a [u8]> {
    const PREFIX: &'static str;

    // Provided method
    fn from_bech32<S>(s: S) -> Result<Self, Error>
       where S: Into<String> { ... }
}

Required Associated Constants§

source

const PREFIX: &'static str

Provided Methods§

source

fn from_bech32<S>(s: S) -> Result<Self, Error>
where S: Into<String>,

Object Safety§

This trait is not object safe.

Implementors§