AeroRust / AeroRust/nmea

Iterator-based parser

Ouverte
#53 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement Hacktoberfest high
Langage dominant
Rust
Étoiles
109
Forks
64
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.