• Romain Vimont's avatar
    Implement operator[] for PlaneMutSlice · ad8be54b
    Romain Vimont authored
    Implement traits Index and IndexMut to access PlaneMutSlice rows as if
    it was a two-dimensional array.
    
    Thay way, we can write:
    
        plane_slice[8][8] = 1;
        let row = &mut plane_slice[5];
        row[3] = 42;
    ad8be54b
plane.rs 14.1 KB