Module byte_parser::split_on_byte [−][src]
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 |