Trait snarkvm_console_program::group::ToBase32
pub trait ToBase32 {
fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
where
W: WriteBase32;
fn to_base32(&self) -> Vec<u5, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator, { ... }
}Expand description
A trait for converting a value to a type T that represents a u5 slice.
Required Methods
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err>where
W: WriteBase32,
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate.