Skip to main content

Validate

Derive Macro Validate 

Source
#[derive(Validate)]
{
    // Attributes available to this derive:
    #[automaton]
}
Expand description

Derive grammar validation functions.

This derive macro generates the two functions validate_bytes and validate_str using the provided automaton function.

The two generated functions are const compatible.