pub fn allocationerror(size: usize, elementtype: &str) -> String
Generate an error message for allocation failures