AeroRust / AeroRust/nmea

Iterator-based parser

Đang mở
#53 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement Hacktoberfest high
Ngôn ngữ chính
Rust
Star
109
Fork
64
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.