Skip to content

Commit

Permalink
parser combinators: add a few notes for how to use them
Browse files Browse the repository at this point in the history
  • Loading branch information
stbuehler committed Jun 25, 2024
1 parent 858e281 commit b7d60d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/parsers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
//! about the allowed input. Depending on the data format that needs
//! to be handled the functions here might help implementing custom
//! parsers.
//!
//! The parser combinators that take an `address_parser` can either
//! take `FromStr::from_str` or a non-default parser like [`parse_loose_ip`].
//! They are used to parse addresses (either as part of a `"/"` separated
//! notation or as single host).
//!
//! Parser combinators that take an additional `host_parser` use that
//! to parse strings that don't have an `"/"` separator - usually these
//! should return Cidr/Inet "host" values, but they can allow special
//! syntax like [`parse_short_ip_cidr`] to represent non-host networks too.
mod combinators;
mod inetaddr;
Expand Down

0 comments on commit b7d60d9

Please sign in to comment.