pub struct STANDARD;
Expand description
Base64 Padding: STANDARD
Implementations§
Source§impl STANDARD
impl STANDARD
Sourcepub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Encode>
pub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Encode>
Create a new Base64Str
, and finally encode it to a Base64 string.
Sourcepub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Decode>
pub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, 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, STANDARD, DecodeToAny>
pub unsafe fn decode_to_any<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, STANDARD, DecodeToAny>
Sourcepub fn decode_to_hex<T: AsRef<[u8]>>(
inner: T,
) -> Base64Str<T, STANDARD, DecodeToHex>
pub fn decode_to_hex<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, STANDARD, 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 STANDARD
impl RefUnwindSafe for STANDARD
impl Send for STANDARD
impl Sync for STANDARD
impl Unpin for STANDARD
impl UnwindSafe for STANDARD
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