fn max_len_on_layer<'a>(d: Datum<'a>, on_layer: i64) -> Option<usize>