Function base64_url::encode_to_vec
source · [−]pub fn encode_to_vec<'a, T: ?Sized + AsRef<[u8]>>(
input: &T,
output: &'a mut Vec<u8>
) -> &'a [u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Expand description
Encode data to Base64-URL data and directly store to a mutable Vec<u8>
reference by concatenating them and return the slice of the Base64-URL data. It is usually for generating a URL.