pub fn admit(len: usize) -> Result<(), Error>Expand description
A Limit error where an array of len items would take large allocations past the process’s limit. admit counts each item as an f64, 8 bytes. A Boolean or byte array near the limit can therefore get the error early. A complex or nested array can pass admit and still meet the guard’s refusal. An array under LARGE bytes passes after one comparison.