pub struct Config { /* private fields */ }
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn with_min_top_left( self, min_top_left: CoordPair, ) -> Result<Self, InvalidConfig>
pub fn with_max_top_left( self, max_top_left: CoordPair, ) -> Result<Self, InvalidConfig>
pub fn with_min_size(self, min_size: CoordPair) -> Result<Self, InvalidConfig>
pub fn with_max_size(self, max_size: CoordPair) -> Result<Self, InvalidConfig>
pub fn with_biome_layer(self, config: Config) -> Self
pub fn with_biome_distr(self, distr: BiomeDistr) -> Self
pub fn with_ground_layer_distr(self, distr: GroundLayerDistr) -> Self
pub fn finish( self, rng: &mut PickedReproducibleRng, ) -> Result<Generator, InitError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more