Function encode_raw
Source pub fn encode_raw<S: AsRef<[u8]> + ?Sized>(src: &S) -> Encoder<'_>
Expand description
Encodes a byte slice to base64_url without padding.
§Arguments
src - The byte slice to encode
§Returns
An iterator that yields encoded bytes without padding characters.
§Example
use omp_core::base64_url;
let encoded = base64_url::encode_raw(b"hello").into_string();