Struct bech32::Bech32Writer [−][src]
Allocationless Bech32 writer that accumulates the checksum data internally and writes them out in the end.
Implementations
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(mut self: 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> WriteBase32 for Bech32Writer<'a>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Bech32Writer<'a>
[src]
impl<'a> !Send for Bech32Writer<'a>
[src]
impl<'a> !Sync for Bech32Writer<'a>
[src]
impl<'a> Unpin for Bech32Writer<'a>
[src]
impl<'a> !UnwindSafe for Bech32Writer<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,