pub struct Bech32Writer<'a> { /* private fields */ }
Expand description

Allocationless Bech32 writer that accumulates the checksum data internally and writes them out in the end.

Implementations

Creates a new writer that can write a bech32 string without allocating itself.

This is a rather low-level API and doesn’t check the HRP or data length for standard compliance.

Write out the checksum at the end. If this method isn’t called this will happen on drop.

Trait Implementations

Executes the destructor for this type. Read more

Writes a single 5 bit value of the data part

Write error
Write a u5 slice

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.