Module split_on_byte

Source
Expand description

Splits the iterator at a given byte.

§Example

let mut parser = StrParser::new("Hello World!");
let mut splitter = parser.split_on_byte(b' ');

let hello = splitter.next().unwrap()
	.record().consume_to_str();
let world = splitter.next().unwrap()
	.record().consume_to_str();

assert_eq!(hello, "Hello");
assert_eq!(world, "World!");
assert!(splitter.next().is_none());

Structs§

SplitOnByte
SplitOnByteIter
SplitOnBytePointInTime