Expand description
Parallel validation helpers for string-like fields (CPU / Rayon) and fixed-point numerics (GPU / wgpu).
§String rules
Use RuleBuilder with key paths from rust_key_paths (typically via key-paths-derive).
Mandatory rules run sequentially and short-circuit on the first failure; remaining rules run
in parallel with Rayon inside RuleBuilder::apply.
§Numeric rules
See gpu_numeric for GpuNumericEngine, which batches
NumericRule rows in a single compute dispatch. Values cross the
CPU/GPU boundary as i32 × 100 (no f32/f64 in the shader).
§Examples
cargo run --example hybrid_gpu— small hybrid democargo run --example fintech_rayon_nested— large nested batch, CPU onlycargo run --example fintech_gpu_batch— large numeric batch, GPU onlycargo run --example fintech_hybrid_batch— both layers on a trade batch
Re-exports§
pub use errors::RuleBuilderError;
Modules§
- errors
- gpu_
numeric - Fixed-point numeric validation and calculation on the GPU via wgpu.
Structs§
- Rule
Builder - Fluent wrapper around a
KpType(key path) and a set of validation functions.