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§
sourcefn fes_to_bytes(self) -> FesToBytes<Self> ⓘ
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.
sourcefn with_checksum<Ck: Checksum>(self, hrp: &Hrp) -> Encoder<'_, Self, Ck>
fn with_checksum<Ck: Checksum>(self, hrp: &Hrp) -> Encoder<'_, Self, Ck>
Adapts the Fe32 iterator to encode the field elements into a bech32 address.