AeroRust / AeroRust/nmea

Iterator-based parser

オープン
#53 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement Hacktoberfest high
主要言語
Rust
スター
109
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。