fn mem_access(
        mem: &mut [Intcode],
        i: usize,
        immediate: bool,
    ) -> &mut Intcode {
        if immediate {
            &mut mem[i]
        } else {
            &mut mem[mem[i] as usize]
        }
    }
// Remember that write access should never never be in immediate mode
// #[rustfmt::skip]
Remember that write access should never never be in immediate mode
Remember that write access should never never be in immediate mode
fn mem_access(
        mem: &mut [Intcode],
        i: usize,
        immediate: bool,
    ) -> &mut Intcode {
        if immediate {
            &mut mem[i]
        } else {
            &mut mem[mem[i] as usize]
        }
    }
fn mem_access ( mem : & mut [ Intcode ] , i : usize , immediate : bool , ) -> & mut Intcode { if immediate { & mut mem [ i ] } else { & mut mem [ mem [ i ] as usize ] } }
Remember that write access should never never be in immediate mode
Remember that write access should never never be in immediate mode
mem
&mut [Intcode]
i
usize
immediate
bool
mem
&mut [Intcode]
i
usize
immediate
bool
[rustfmt::skip]
None