Expand description
Parallel validation helpers for string-like fields (CPU / Rayon) and fixed-point numerics (GPU / wgpu).
§String rules
Use Rule from builder with bool predicates and a paired
error value E per rule (see builder::Rule::mandatory_rule / builder::Rule::rule).
Mandatory rules run sequentially and short-circuit; remaining rules run in parallel with
Rayon inside Rule::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 basics— CPU-only startercargo 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 batchcargo run --example rule_csv_catalog—builder::Rule+ CSV catalog
Re-exports§
pub use builder::Rule;pub use errors::RuleBuilderError;
Modules§
- builder
- Key-path–driven validation builder (
Rule). - errors
- gpu_
numeric - Fixed-point numeric validation and calculation on the GPU via wgpu.