advent_of_code_2024::day_21

Trait CoordinateExtensions

source
trait CoordinateExtensions: Sized {
    // Required method
    fn apply_move(&self, mv: &DirectionalButton) -> Option<Self>;
}
Expand description

Helpers for moving within a keypad

Required Methods§

source

fn apply_move(&self, mv: &DirectionalButton) -> Option<Self>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl CoordinateExtensions for (u8, u8)

source§

fn apply_move(&self, mv: &DirectionalButton) -> Option<Self>

The coordinate after pressing a specific direction key

Implementors§