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

Object Safety§

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

§

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

§

impl ToBase32 for Features<Bolt11InvoiceContext>

§

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

§

impl ToBase32 for Features<Bolt11InvoiceContext>

§

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

§

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

§

impl ToBase32 for PaymentSecret

§

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

§

impl ToBase32 for PaymentSecret

§

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

§

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_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]>,