pub struct Base64UrlUnpadded;
Expand description
URL-safe Base64 encoding without padding.
[A-Z] [a-z] [0-9] - _
0x41-0x5a, 0x61-0x7a, 0x30-0x39, 0x2d, 0x5f
Trait Implementations§
Source§impl Clone for Base64UrlUnpadded
impl Clone for Base64UrlUnpadded
Source§fn clone(&self) -> Base64UrlUnpadded
fn clone(&self) -> Base64UrlUnpadded
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Base64UrlUnpadded
impl Debug for Base64UrlUnpadded
Source§impl Default for Base64UrlUnpadded
impl Default for Base64UrlUnpadded
Source§fn default() -> Base64UrlUnpadded
fn default() -> Base64UrlUnpadded
Returns the “default value” for a type. Read more
Source§impl Hash for Base64UrlUnpadded
impl Hash for Base64UrlUnpadded
Source§impl Ord for Base64UrlUnpadded
impl Ord for Base64UrlUnpadded
Source§fn cmp(&self, other: &Base64UrlUnpadded) -> Ordering
fn cmp(&self, other: &Base64UrlUnpadded) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Base64UrlUnpadded
impl PartialEq for Base64UrlUnpadded
Source§impl PartialOrd for Base64UrlUnpadded
impl PartialOrd for Base64UrlUnpadded
impl Copy for Base64UrlUnpadded
impl Eq for Base64UrlUnpadded
impl StructuralPartialEq for Base64UrlUnpadded
Auto Trait Implementations§
impl Freeze for Base64UrlUnpadded
impl RefUnwindSafe for Base64UrlUnpadded
impl Send for Base64UrlUnpadded
impl Sync for Base64UrlUnpadded
impl Unpin for Base64UrlUnpadded
impl UnwindSafe for Base64UrlUnpadded
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>
Available on crate feature
alloc
only.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
Source§fn encode_string(input: &[u8]) -> String
fn encode_string(input: &[u8]) -> String
Available on crate feature
alloc
only.