pub struct Maze2D { /* private fields */ }Implementations§
source§impl Maze2D
impl Maze2D
pub fn new(config: &Maze2DConfig, joints: &[Joint], rooms: &[Room]) -> Self
pub fn set_entry(self, x: usize, y: usize)
pub fn set_exit(self, x: usize, y: usize)
pub fn get_size(&self) -> (usize, usize)
pub fn get_walls(&self) -> Vec<Joint>
pub fn solve(&mut self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for Maze2D
impl<'de> Deserialize<'de> for Maze2D
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more