pub fn decode_iter<I>(iter: I) -> DecodeIter<I::IntoIter> ⓘwhere
I: IntoIterator<Item = u8>,
Expand description
Return an iterator that decodes the tick-encoded characters from the input
iterator. Returns Some(Err(_))
if the input character sequence is invalid,
then returns None
after that.
§Example
let iter = tick_encoding::decode_iter(b"`00`01".iter().copied());
assert_eq!(iter.collect::<Result<Vec<_>, _>>().unwrap(), vec![0x00, 0x01]);