bdk_chain::bitcoin::bech32

Trait ByteIterExt

pub trait ByteIterExt: Sized + Iterator<Item = u8> {
    // Provided method
    fn bytes_to_fes(self) -> BytesToFes<Self>  { ... }
}
Expand description

Extension trait for byte iterators which provides an adaptor to GF32 elements.

Provided Methods§

fn bytes_to_fes(self) -> BytesToFes<Self>

Adapts the byte iterator to output GF32 field elements instead.

If the total number of bits is not a multiple of 5 we pad with 0s

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

§

impl<I> ByteIterExt for I
where I: Iterator<Item = u8>,