pub struct MapAnalysis {
pub temperature: f64,
pub total_mappings: usize,
pub average_mappings_per_char: f64,
pub average_mapping_length: f64,
pub expansion_ratio: f64,
pub compute_score: u32,
pub entropy: f64,
}Expand description
Analyze a map and return statistics
Fields§
§temperature: f64Estimated temperature based on characteristics
total_mappings: usizeTotal number of mappings across all characters
average_mappings_per_char: f64Average mappings per character
average_mapping_length: f64Average length of mappings
expansion_ratio: f64Expansion ratio
compute_score: u32Compute score
entropy: f64Entropy
Trait Implementations§
Source§impl Clone for MapAnalysis
impl Clone for MapAnalysis
Source§fn clone(&self) -> MapAnalysis
fn clone(&self) -> MapAnalysis
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 MapAnalysis
impl Debug for MapAnalysis
Source§impl<'de> Deserialize<'de> for MapAnalysis
impl<'de> Deserialize<'de> for MapAnalysis
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 MapAnalysis
impl RefUnwindSafe for MapAnalysis
impl Send for MapAnalysis
impl Sync for MapAnalysis
impl Unpin for MapAnalysis
impl UnwindSafe for MapAnalysis
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