snarkvm_console_types_group::bech32

Trait WriteBase32

Source
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§

Source

type Err: Debug

Write error

Required Methods§

Source

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

Write a single u5

Provided Methods§

Source

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

Write a u5 slice

Implementations on Foreign Types§

Source§

impl WriteBase32 for Vec<u5>

Source§

type Err = ()

Source§

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

Source§

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

Implementors§