Module deserialise

Source

Enums§

Entry 🔒
An entry.
Error
An error that can occur reading a zone file.
MaybeWildcard 🔒
A regular or wildcard domain
State 🔒
States the tokeniser can be in

Functions§

parse_domain 🔒
Parse a domain name, appending the origin if it’s not absolute.
parse_domain_or_wildcard 🔒
Parse a regular or wildcard domain name.
parse_entry 🔒
Parse a single entry, skipping comments and whitespace. Entries are of the form:
parse_include 🔒
parse_origin 🔒
parse_rr 🔒
parse_u32 🔒
Parse a decimal number into a u32.
to_rr 🔒
Helper for parse_rr
tokenise_entry 🔒
Split an entry into tokens: split on whitespace, taking quoting into account, and if there are parentheses or quotes continue to the matched delimiter.
tokenise_escape 🔒
Tokenise an escape sequence
try_parse_rtype_with_data 🔒
Try to parse a record type with data. Returns None if there is no parse, since this does not necessarily indicate a fatal error.