Function encode_iter

Source
pub fn encode_iter<I>(iter: I) -> EncodeIter<I::IntoIter> 
where I: IntoIterator<Item = u8>,
Expand description

Return an iterator that encodes the bytes from the input iterator.

§Example

let iter = tick_encoding::encode_iter(b"x: \x00".iter().copied());
assert_eq!(iter.collect::<String>(), "x: `00");