usemlx_rs::{Array,error::Exception};/// A per-step logit transform for constrained decoding: `mask` restricts which
/// tokens may be sampled next, and `accept` advances internal state with the
/// token that was chosen. Implemented by `parsers::json::JsonConstraint`.
pubtraitLogitMask{/// Return `logits` with disallowed tokens pushed to `-inf`.
fnmask(&self, logits:&Array)->Result<Array, Exception>;/// Record the token that was actually sampled.
fnaccept(&mutself, token:u32);}