[][src]Crate nmea_parser

NMEA Parser: NMEA parser for Rust

This crate aims to cover the most important AIS and GNSS sentences. Supports AIS class A and B types. Identifies GPS, GLONASS, Galileo, BeiDou, Navic and QZSS satellite systems.

Modules

ais

AIS-related data structures

gnss

GNSS-related data structures

Structs

NmeaStore

Used to store partial sentences between parse_sentence function calls

Enums

ParseError

Parse error returned by parse_sentence. The string is used instead of static str because the error messages are expected to contain context-specific details.

ParsedSentence

Result from function parse_sentence

Traits

LatLon

Provides access to geographical position in the implementing struct.

Functions

parse_sentence

Parses NMEA sentence into ParsedSentence enum. If the given sentence is part of multipart message, the state is saved into store object and ParsedSentence::Incomplete returned. The actual result is returned when all the parts have been provided for the function.