AeroRust / AeroRust/nmea

Iterator-based parser

Aperta
#53 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement Hacktoberfest high
Lingua principale
Rust
Stelle
109
Fork
64
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

This idea was mentioned in #9 and will greatly improve the usability of the crate by providing an iterator-based parser that will parse new messages from e.g. streamed/received bytes when `\r\n` ending is present.

- Extend with bytes (similar to `Iterator::chain`)
- Extend with a single byte (optional)
- `try_next()` try to parse the currently collected bytes (by searching for an ending - `\r\n`)

Enhancements:
- Track both the ending `\r\n` but also the start of a message `!` (for AIS messages) or `$` (for all other) in the iterator.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.