pub struct STANDARD;
👎Deprecated since 0.8.0-rc.1: Use
string_v2
instead, v1 will be removed in 0.9.0.Expand description
Base64 Padding: STANDARD
Implementations§
Source§impl STANDARD
impl STANDARD
Sourcepub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Encode>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn encode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Encode>
string_v2
instead, v1 will be removed in 0.9.0.Create a new Base64Str
, and finally encode it to a Base64 string.
Sourcepub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Decode>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn decode<T: AsRef<[u8]>>(inner: T) -> Base64Str<T, STANDARD, Decode>
string_v2
instead, v1 will be removed in 0.9.0.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>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub unsafe fn decode_to_any<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, STANDARD, DecodeToAny>
string_v2
instead, v1 will be removed in 0.9.0.Sourcepub fn decode_to_hex<T: AsRef<[u8]>>(
inner: T,
) -> Base64Str<T, STANDARD, DecodeToHex>
👎Deprecated since 0.8.0-rc.1: Use string_v2
instead, v1 will be removed in 0.9.0.
pub fn decode_to_hex<T: AsRef<[u8]>>( inner: T, ) -> Base64Str<T, STANDARD, DecodeToHex>
string_v2
instead, v1 will be removed in 0.9.0.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