63f41a6
1
2
3
4
5
6
7
pub fn insert_shift_len(len: usize, index: usize) -> Result<usize, u8> { if index > len { return Err(1); } Ok(len - index) }