Skip to main content

Crate egglog_add_primitive

Crate egglog_add_primitive 

Source

Macrosยง

add_literal_prim
This macro lets the user declare literal primitives with automatic validator generation. It automatically generates validators by converting between Rust values and Literal types.
add_primitive
This macro lets the user declare custom egglog primitives. It supports a few special features:
add_primitive_with_validator
This macro lets the user declare custom egglog primitives with explicit validators. It combines primitive registration with a custom validator function.