pub struct Base11;Trait Implementations§
Source§impl Base<11> for Base11
impl Base<11> for Base11
const ALPHABET: [u8; 11]
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 Base11
impl RefUnwindSafe for Base11
impl Send for Base11
impl Sync for Base11
impl Unpin for Base11
impl UnwindSafe for Base11
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