pub fn insert_shift_len(len: usize, index: usize) -> Result { if index > len { return Err(1); } Ok(len - index) }