pub struct TemperatureConfig {
pub temperature: f64,
pub min_mappings: usize,
pub max_mappings: usize,
pub min_length: usize,
pub max_length: usize,
pub expansion_ratio: f64,
pub compute_score: u32,
}Expand description
Temperature configuration for map generation
Fields§
§temperature: f64Temperature value (0.0 to 1.0)
min_mappings: usizeMinimum number of mappings per character
max_mappings: usizeMaximum number of mappings per character
min_length: usizeMinimum length of individual mappings
max_length: usizeMaximum length of individual mappings
expansion_ratio: f64Target expansion ratio
compute_score: u32Relative computational cost (0-100)
Trait Implementations§
Source§impl Clone for TemperatureConfig
impl Clone for TemperatureConfig
Source§fn clone(&self) -> TemperatureConfig
fn clone(&self) -> TemperatureConfig
Returns a duplicate 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 TemperatureConfig
impl Debug for TemperatureConfig
Source§impl Default for TemperatureConfig
impl Default for TemperatureConfig
Source§impl<'de> Deserialize<'de> for TemperatureConfig
impl<'de> Deserialize<'de> for TemperatureConfig
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
Auto Trait Implementations§
impl Freeze for TemperatureConfig
impl RefUnwindSafe for TemperatureConfig
impl Send for TemperatureConfig
impl Sync for TemperatureConfig
impl Unpin for TemperatureConfig
impl UnwindSafe for TemperatureConfig
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