Function advent_of_code_2021::day_22::limit_instructions[−][src]

fn limit_instructions(
    instructions: &Vec<Instruction>,
    limit: Cuboid
) -> Vec<Instruction>ⓘ
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator, 
Expand description

Filter the list of instructions to just the region that intersects the limit Cuboid. If an instruction’s cuboid is partially in the area, instead include a modified instruction that just contains the intersection with the limit.