rust_flightweather 2.0.1

Decodes METAR and TAF
Documentation
////////////////////////////////////////////////////////////////////////////////////////////////////
// MIT License
//
// Copyright (c) 2023 Lily Hopkins
// Copyright (c) 2024 Rust-FlightWeather Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
////////////////////////////////////////////////////////////////////////////////////////////////////

//![deny(missing_docs)]

//! # METAR and TAF parsing library for Rust
//!
//! ## Quick usage
//!
//! This example will print out the parsed data from a METAR:
//!
//! ```rust
//! use rust_flightweather::metar::Metar;
//!
//! let metar = "EGHI 282120Z 19015KT 140V220 6000 RA SCT006 BKN009 16/14 Q1006";
//! let r = Metar::parse(metar).unwrap();
//! println!("{:#?}", r);
//! ```
//!
//! This example will print out the parsed data from a METAR:
//!
//! ```rust
//! use rust_flightweather::taf::Taf;
//!
//! let taf = "TAF LUDO 130530Z 1307/1316 31015KT 8000 SHRA FEW005 FEW010CB SCT018 BKN025 TEMPO 1311/1316 4000 +SHRA PROB30 TEMPO 1314/1316 TSRA SCT005 BKN010CB";
//! let r = Taf::parse(taf).unwrap();
//! println!("{:#?}", r);
//!
//! ## Issues
//!
//! METARs and TAFs are complicated structures.
//! If you come across a METAR or a TAF that doesn't parse
//! correctly, open an issue and include it in the issue.
//! This will aid in debugging the issue significantly.

pub mod metar;
pub mod taf;
mod types;