Expand description
This module implements parsing code for some basic building blocks of the ATerm format, which is used by C++ Nix to serialize Derivations.
FunctionsΒ§
- parse_
bytes_ πfield - Parse a field in double quotes, undo any escaping, and return the unquoted
and decoded
Vec<u8>
. - parse_
escaped_ πbytes - Parse a bstr and undo any escaping (which is why this needs to allocate).
- parse_
string_ πfield - Parse a field in double quotes, undo any escaping, and return the unquoted and decoded String, if itβs valid UTF-8. Or fail parsing if the bytes are no valid UTF-8.
- parse_
string_ πlist - Parse a list of string fields (enclosed in brackets)