pub struct Base62;Trait Implementations§
Source§impl Base<62> for Base62
impl Base<62> for Base62
const ALPHABET: [u8; 62]
const LUT: [i8; 256] = _
const BASE: usize = _
Source§fn decode_mut<I: AsRef<[u8]>>(
input: I,
buf: &mut [u8],
) -> Result<usize, DecodeError>
fn decode_mut<I: AsRef<[u8]>>( input: I, buf: &mut [u8], ) -> Result<usize, DecodeError>
decode input base encoding into buffer
please do not pass in a non-empty buffer (this will output garbled data). Read more
Source§fn encode_mut<I: AsRef<[u8]>>(
input: I,
buf: &mut [u8],
) -> Result<usize, DecodeError>
fn encode_mut<I: AsRef<[u8]>>( input: I, buf: &mut [u8], ) -> Result<usize, DecodeError>
output buff is intentionally a slice since
&mut str is essentially useless
users will have to convert output bytes into a str.
it is assumed buf is zeroed, passing one in that isn’t will produce garbage (and extremely likely not valid UTF-8) data. Read moreAuto Trait Implementations§
impl Freeze for Base62
impl RefUnwindSafe for Base62
impl Send for Base62
impl Sync for Base62
impl Unpin for Base62
impl UnwindSafe for Base62
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