breez_sdk_liquid::bitcoin::bech32

Trait ToBase32

pub trait ToBase32 {
    // Required method
    fn write_base32<W>(
        &self,
        writer: &mut W,
    ) -> Result<(), <W as WriteBase32>::Err>
       where W: WriteBase32;

    // Provided method
    fn to_base32(&self) -> Vec<u5> { ... }
}
Expand description

A trait for converting a value to a type T that represents a u5 slice.

Required Methods§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate.

Provided Methods§

fn to_base32(&self) -> Vec<u5>

Convert Self to base32 vector

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl ToBase32 for Bolt11InvoiceSignature

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for Description

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for ExpiryTime

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for Fallback

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for MinFinalCltvExpiryDelta

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for PayeePubKey

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for PositiveTimestamp

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for PrivateRoute

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for RawDataPart

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for RawTaggedField

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for Sha256

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

§

impl ToBase32 for TaggedField

§

fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>
where W: WriteBase32,

Implementors§

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::Fallback

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::RawTaggedField

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::TaggedField

§

impl ToBase32 for breez_sdk_liquid::lightning::ln::features::Features<Bolt11InvoiceContext>

§

impl ToBase32 for breez_sdk_liquid::lightning_125::types::features::Features<Bolt11InvoiceContext>

§

impl ToBase32 for breez_sdk_liquid::lightning_125::types::payment::PaymentSecret

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::Bolt11InvoiceSignature

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::Description

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::ExpiryTime

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::MinFinalCltvExpiryDelta

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::PayeePubKey

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::PaymentSecret

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::PositiveTimestamp

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::PrivateRoute

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::RawDataPart

§

impl ToBase32 for breez_sdk_liquid::lightning_invoice::Sha256

§

impl<T> ToBase32 for T
where T: AsRef<[u8]>,