forked from AeroRust/nmea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.rs
59 lines (55 loc) · 1.27 KB
/
mod.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! All the supported sentence type data and parsers.
mod aam;
mod alm;
mod bod;
mod bwc;
mod dbk;
mod gbs;
mod gga;
mod gll;
mod gns;
mod gsa;
mod gsv;
mod hdt;
mod mda;
mod mtw;
mod mwv;
mod rmc;
mod rmz;
mod txt;
mod utils;
mod vhw;
mod vtg;
mod zda;
pub(crate) mod faa_mode;
mod fix_type;
mod gnss_type;
pub use {
aam::{parse_aam, AamData},
alm::{parse_alm, AlmData},
bod::{parse_bod, BodData},
bwc::{parse_bwc, BwcData},
dbk::{parse_dbk, DbkData},
faa_mode::{FaaMode, FaaModes},
fix_type::FixType,
gbs::{parse_gbs, GbsData},
gga::{parse_gga, GgaData},
gll::{parse_gll, GllData},
gns::{parse_gns, GnsData, NavigationStatus},
gnss_type::GnssType,
gsa::{parse_gsa, GsaData},
gsv::{parse_gsv, GsvData},
hdt::{parse_hdt, HdtData},
mda::{parse_mda, MdaData},
mtw::{parse_mtw, MtwData, MtwUnit},
mwv::{parse_mwv, MwvData, MwvReference, MwvWindSpeedUnits},
rmc::{parse_rmc, RmcData, RmcStatusOfFix},
rmz::{parse_pgrmz, PgrmzData},
txt::{parse_txt, TxtData},
vhw::{parse_vhw, VhwData},
vtg::{parse_vtg, VtgData},
zda::{parse_zda, ZdaData},
};
pub(crate) fn nom_parse_failure(inp: &str) -> nom::Err<nom::error::Error<&str>> {
nom::Err::Failure(nom::error::Error::new(inp, nom::error::ErrorKind::Fail))
}