Struct bech32::Bech32Writer [−][src]
pub struct Bech32Writer<'a> { /* fields omitted */ }
Allocationless Bech32 writer that accumulates the checksum data internally and writes them out in the end.
Implementations
impl<'a> Bech32Writer<'a>
[src]
impl<'a> Bech32Writer<'a>
[src]pub fn new(hrp: &str, fmt: &'a mut dyn Write) -> Result<Bech32Writer<'a>, Error>
[src]
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.
pub fn finalize(self) -> Result
[src]
Write out the checksum at the end. If this method isn’t called this will happen on drop.
Trait Implementations
impl<'a> Drop for Bech32Writer<'a>
[src]
impl<'a> Drop for Bech32Writer<'a>
[src]