Trait breez_sdk_liquid::bitcoin::bech32::WriteBase32

pub trait WriteBase32 {
    type Err: Debug;

    // Required method
    fn write_u5(&mut self, data: u5) -> Result<(), Self::Err>;

    // Provided method
    fn write(&mut self, data: &[u5]) -> Result<(), Self::Err> { ... }
}
Expand description

Interface to write u5s into a sink

Required Associated Types§

type Err: Debug

Write error

Required Methods§

fn write_u5(&mut self, data: u5) -> Result<(), Self::Err>

Write a single u5

Provided Methods§

fn write(&mut self, data: &[u5]) -> Result<(), Self::Err>

Write a u5 slice

Implementations on Foreign Types§

§

impl WriteBase32 for Vec<u5>

§

type Err = ()

§

fn write(&mut self, data: &[u5]) -> Result<(), <Vec<u5> as WriteBase32>::Err>

§

fn write_u5(&mut self, data: u5) -> Result<(), <Vec<u5> as WriteBase32>::Err>

Implementors§

§

impl<'a> WriteBase32 for Bech32Writer<'a>

§

type Err = Error