Struct jwt_simple::prelude::Base64
source · [−]pub struct Base64;Trait Implementations
sourceimpl Decoder for Base64
impl Decoder for Base64
sourcefn decode<IN>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error> where
IN: AsRef<[u8]>,
fn decode<IN>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>
) -> Result<&'t [u8], Error> where
IN: AsRef<[u8]>,
Decode encoded into bin.
The output buffer can be larger than required; the returned slice is
a view of the buffer with the correct length.
ignore is an optional set of characters to ignore. Read more
sourceimpl Encoder for Base64
impl Encoder for Base64
sourcefn encode<IN>(b64: &mut [u8], bin: IN) -> Result<&[u8], Error> where
IN: AsRef<[u8]>,
fn encode<IN>(b64: &mut [u8], bin: IN) -> Result<&[u8], Error> where
IN: AsRef<[u8]>,
Encode bin into encoded.
The output buffer can be larger than required; the returned slice is
a view of the buffer with the correct length. Read more
Auto Trait Implementations
impl RefUnwindSafe for Base64
impl Send for Base64
impl Sync for Base64
impl Unpin for Base64
impl UnwindSafe for Base64
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more