pub fn encode_to_slice<'a, T: ?Sized + AsRef<[u8]>>( input: &T, output: &'a mut [u8], ) -> Result<&'a [u8], EncodeSliceError>
Encode data to a Base64-URL string to a slice and return the slice with a valid length.