pub struct Base64Url;Expand description
URL-safe Base64 encoding with = padding.
[A-Z] [a-z] [0-9] - _
0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2d, 0x5fTrait Implementations§
Source§impl Alphabet for Base64Url
impl Alphabet for Base64Url
Source§const DECODER: &'static [DecodeStep] = DECODER
const DECODER: &'static [DecodeStep] = DECODER
Decoder passes
Source§const ENCODER: &'static [EncodeStep] = ENCODER
const ENCODER: &'static [EncodeStep] = ENCODER
Encoder passes
Source§type Unpadded = Base64UrlUnpadded
type Unpadded = Base64UrlUnpadded
Unpadded equivalent of this alphabet. Read more
Source§fn decode_6bits(src: u8) -> i16
fn decode_6bits(src: u8) -> i16
Decode 6-bits of a Base64 message.
Source§fn encode_3bytes(src: &[u8], dst: &mut [u8])
fn encode_3bytes(src: &[u8], dst: &mut [u8])
Encode 3-bytes of a Base64 message.
Source§fn encode_6bits(src: i16) -> u8
fn encode_6bits(src: i16) -> u8
Encode 6-bits of a Base64 message.
Source§impl Ord for Base64Url
impl Ord for Base64Url
Source§impl PartialOrd for Base64Url
impl PartialOrd for Base64Url
impl Copy for Base64Url
impl Eq for Base64Url
impl StructuralPartialEq for Base64Url
Auto Trait Implementations§
impl Freeze for Base64Url
impl RefUnwindSafe for Base64Url
impl Send for Base64Url
impl Sync for Base64Url
impl Unpin for Base64Url
impl UnwindSafe for Base64Url
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 Base64 string into the provided destination buffer.
Source§fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
fn decode_in_place(buf: &mut [u8]) -> Result<&[u8], InvalidEncodingError>
Decode a Base64 string in-place. Read more
Source§fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
fn decode_vec(input: &str) -> Result<Vec<u8>, Error>
Decode a Base64 string into a byte vector.
Source§fn encode<'a>(
src: &[u8],
dst: &'a mut [u8],
) -> Result<&'a str, InvalidLengthError>
fn encode<'a>( src: &[u8], dst: &'a mut [u8], ) -> Result<&'a str, InvalidLengthError>
Encode the input byte slice as Base64. Read more