Skip to main content

encode_raw

Function encode_raw 

Source
pub fn encode_raw<S: AsRef<[u8]> + ?Sized>(src: &S) -> Encoder<'_>
Expand description

Encodes a byte slice to base32_hex without padding.

§Arguments

  • src - The byte slice to encode

§Returns

An iterator that yields encoded bytes without padding characters.

§Example

use omp_core::base32_hex;
let encoded = base32_hex::encode_raw(b"hello").into_string();