Trait bech32::Fe32IterExt

source ·
pub trait Fe32IterExt: Sized + Iterator<Item = Fe32> {
    // Provided methods
    fn fes_to_bytes(self) -> FesToBytes<Self>  { ... }
    fn with_checksum<Ck: Checksum>(self, hrp: &Hrp) -> Encoder<'_, Self, Ck> { ... }
}
Expand description

Extension trait for field element iterators.

Provided Methods§

source

fn fes_to_bytes(self) -> FesToBytes<Self>

Adapts the Fe32 iterator to output bytes instead.

If the total number of bits is not a multiple of 8, any trailing bits are simply dropped.

source

fn with_checksum<Ck: Checksum>(self, hrp: &Hrp) -> Encoder<'_, Self, Ck>

Adapts the Fe32 iterator to encode the field elements into a bech32 address.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I> Fe32IterExt for I
where I: Iterator<Item = Fe32>,