Skip to main content

panic_strict_vec_batched

Function panic_strict_vec_batched 

Source
fn panic_strict_vec_batched(container: &str, errors: BatchedErrors) -> !
Expand description

Fold a batched strict-vec BatchedErrors into the single panic every checked_vec_*_into_sexp raises, under container (e.g. "Vec<i64>").

Reuses BatchedErrors::into_error’s "<container> conversion failed: invalid value at index <i>: ...; and N more" grammar (#1192/#1097), but extracts the inner message directly rather than going through SexpError’s Display impl — that impl wraps every variant as "invalid value: {msg}", which would read as a doubled “invalid value: Vec<i64> conversion failed: invalid value at index 0: …” in a panic message.