Struct ct_codecs::Base64UrlSafeNoPadding
source · pub struct Base64UrlSafeNoPadding;
Trait Implementations§
source§impl Decoder for Base64UrlSafeNoPadding
impl Decoder for Base64UrlSafeNoPadding
source§fn decode<'t, IN: AsRef<[u8]>>(
bin: &'t mut [u8],
b64: IN,
ignore: Option<&[u8]>,
) -> Result<&'t [u8], Error>
fn decode<'t, IN: AsRef<[u8]>>( bin: &'t mut [u8], b64: IN, ignore: Option<&[u8]>, ) -> Result<&'t [u8], Error>
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.source§impl Encoder for Base64UrlSafeNoPadding
impl Encoder for Base64UrlSafeNoPadding
source§fn encoded_len(bin_len: usize) -> Result<usize, Error>
fn encoded_len(bin_len: usize) -> Result<usize, Error>
Length of
bin_len
bytes after encoding.source§fn encode<IN: AsRef<[u8]>>(b64: &mut [u8], bin: IN) -> Result<&[u8], Error>
fn encode<IN: AsRef<[u8]>>(b64: &mut [u8], bin: IN) -> Result<&[u8], Error>
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.Auto Trait Implementations§
impl Freeze for Base64UrlSafeNoPadding
impl RefUnwindSafe for Base64UrlSafeNoPadding
impl Send for Base64UrlSafeNoPadding
impl Sync for Base64UrlSafeNoPadding
impl Unpin for Base64UrlSafeNoPadding
impl UnwindSafe for Base64UrlSafeNoPadding
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