AeroRust / AeroRust/nmea

Iterator-based parser

未关闭
#53 2 条评论 0 个 reaction 已指派 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 摘要。