[][src]Trait bech32::WriteBase32

pub trait WriteBase32 {
    type Err: Debug;
    fn write_u5(&mut self, data: u5) -> Result<(), Self::Err>;

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

Interface to write u5s into a sink

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>[src][]

type Err = ()

Implementors

impl<'a> WriteBase32 for Bech32Writer<'a>[src][]

type Err = Error

fn write_u5(&mut self, data: u5) -> Result[src][]

Writes a single 5 bit value of the data part