pub struct Base32;Expand description
RFC4648 lower case Base32 encoding with = padding.
[a-z] [2-7]
0x61-0x7a, 0x32-0x37Trait Implementations§
impl Copy for Base32
impl Eq for Base32
impl StructuralPartialEq for Base32
Auto Trait Implementations§
impl Freeze for Base32
impl RefUnwindSafe for Base32
impl Send for Base32
impl Sync for Base32
impl Unpin for Base32
impl UnwindSafe for Base32
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Encoding for Twhere
T: Alphabet,
impl<T> Encoding for Twhere
T: Alphabet,
Source§fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
fn decode(src: impl AsRef<[u8]>, dst: &mut [u8]) -> Result<&[u8], Error>
Decode a Base32-encoded string into the provided output buffer,
returning a slice containing the decoded data.
Source§fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
Available on crate feature
alloc only.Decode a Base32 string into a byte vector.
Source§fn encode<'a>(src: &[u8], dst: &'a mut [u8]) -> Result<&'a str, Error>
fn encode<'a>(src: &[u8], dst: &'a mut [u8]) -> Result<&'a str, Error>
Encode the input byte slice as Base32. Read more
Source§fn encode_string(input: &[u8]) -> String
fn encode_string(input: &[u8]) -> String
Available on crate feature
alloc only.Encode input byte slice into a
String containing Base32.Source§fn encoded_len(bytes: &[u8]) -> usize
fn encoded_len(bytes: &[u8]) -> usize
Get the length of Base32 produced by encoding the given bytes.