Crate nom_derive_impl[−][src]
Expand description
nom-derive-impl
Overview
nom-derive is a custom derive attribute, to derive nom
parsers automatically from the structure definition.
This crate is not meant to be used directly.
See nom-derive
crate for documentation.
Derive Macros
The Nom
derive automatically generates a parse
function for the structure
using nom parsers. It will try to infer parsers for primitive of known
types, but also allows you to specify parsers using custom attributes.
The NomBE
acts like the Nom
attribute, but sets the endianness to big-endian for the
current object. This can be overriden locally at the field-level.
This derive macro behaves exactly like Nom derive, except it prints the generated parser on stderr. This is helpful for debugging generated parsers.
The NomLE
acts like the Nom
attribute, but sets the endianness to little-endian for the
current object. This can be overriden locally at the field-level.