Struct nmea0183::Parser [−][src]
pub struct Parser { /* fields omitted */ }
Expand description
Parses NMEA sentences and stores intermediate parsing state. Parser is tolerant for errors so you should not reinitialize it after errors.
Implementations
Accepts only that source
Ignore all sources except given.
Accepts only that sentence
Ignore all sentences except given.
pub fn parse_from_bytes<'a>(
&'a mut self,
input: &'a [u8]
) -> impl Iterator<Item = Result<ParseResult, &'static str>> + 'a
pub fn parse_from_bytes<'a>(
&'a mut self,
input: &'a [u8]
) -> impl Iterator<Item = Result<ParseResult, &'static str>> + 'a
Use parser state and bytes slice than returns Iterator that yield ParseResult or errors if has enough data for parsing.
Parse NMEA by one byte at a time. Returns Some if has enough data for parsing.