pub struct URL_SAFE_NO_PAD;
Expand description
Base64 Padding: URL_SAFE_NO_PAD
Implementations§
Source§impl URL_SAFE_NO_PAD
impl URL_SAFE_NO_PAD
Sourcepub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, URL_SAFE_NO_PAD, Encode>
pub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, URL_SAFE_NO_PAD, Encode>
Create a new Base64Str
, and finally encode it to a Base64 string.
Sourcepub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, URL_SAFE_NO_PAD, Decode>
pub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, URL_SAFE_NO_PAD, Decode>
Create a new Base64Str
, and finally decode the inner Base64 string.
Notice: will do nothing if the decoded string is not valid UTF-8 encoded.
If that is acceptable, use decode_to_any
.
Sourcepub unsafe fn decode_to_any<T: AsRef<[u8]>>(
inner: T,
) -> Base64Str<T, URL_SAFE_NO_PAD, DecodeToAny>
pub unsafe fn decode_to_any<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, URL_SAFE_NO_PAD, DecodeToAny>
Sourcepub fn decode_to_hex<T: AsRef<[u8]>>(
inner: T,
) -> Base64Str<T, URL_SAFE_NO_PAD, DecodeToHex>
pub fn decode_to_hex<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, URL_SAFE_NO_PAD, DecodeToHex>
Create a new Base64Str
, and finally decode the inner Base64 string.
Notice: will do nothing if the inner string is not a valid Base64 string.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for URL_SAFE_NO_PAD
impl RefUnwindSafe for URL_SAFE_NO_PAD
impl Send for URL_SAFE_NO_PAD
impl Sync for URL_SAFE_NO_PAD
impl Unpin for URL_SAFE_NO_PAD
impl UnwindSafe for URL_SAFE_NO_PAD
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