Struct maze_core::square::Maze2DConfig
source · pub struct Maze2DConfig { /* private fields */ }Implementations§
source§impl Maze2DConfig
impl Maze2DConfig
source§impl Maze2DConfig
impl Maze2DConfig
pub fn get_size(&self) -> (usize, usize)
pub fn set_size(&mut self, width: usize, height: usize)
pub fn with_size(self, width: usize, height: usize) -> Self
pub fn get_entry(&self) -> (usize, usize)
pub fn set_entry(&mut self, x: usize, y: usize)
pub fn with_entry(self, x: usize, y: usize) -> Self
pub fn get_exit(&self) -> (usize, usize)
pub fn set_exit(&mut self, x: usize, y: usize)
pub fn with_exit(self, x: usize, y: usize) -> Self
pub fn get_seed(&self) -> [u8; 32]
pub fn set_seed(&mut self, seed: [u8; 32])
pub fn new_seed(&mut self) -> [u8; 32]
pub fn with_seed(self, seed: [u8; 32]) -> Self
pub fn get_rng(&self) -> SmallRng
Trait Implementations§
source§impl Clone for Maze2DConfig
impl Clone for Maze2DConfig
source§fn clone(&self) -> Maze2DConfig
fn clone(&self) -> Maze2DConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Maze2DConfig
impl Debug for Maze2DConfig
source§impl Default for Maze2DConfig
impl Default for Maze2DConfig
source§impl<'de> Deserialize<'de> for Maze2DConfig
impl<'de> Deserialize<'de> for Maze2DConfig
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