1 unstable release
Uses new Rust 2024
| 0.1.0 | Jul 13, 2025 |
|---|
#3 in #skilltree
Used in 2 crates
64KB
1.5K
SLoC
capability-grower-configuration-comparison
Overview
The capability-grower-configuration-comparison crate enables an advanced mechanism to compare instances of tree configurations utilized within skill tree growth simulations or other hierarchical growth models. Leveraging a comprehensive set of traits, the crate performs detailed structural comparisons, yielding nuanced insights into configuration disparities through a dedicated comparison outcome, ranging from exact matches to partial and incompatible distinctions.
Features
- Comprehensive Comparison Traits: Implement several traits such as
CompareDepth,CompareBreadth,CompareComplexity, and more to facilitate detailed configuration analysis. - Versatile Outcome Representation: Returns
CompareOutcome, featuringExact,Partial(f32), orIncompatiblevariants for granular comparisons. - Configurable Tree Aspects: Examine sub-branch ordering, tree expansion policies, balance symmetry, and more through well-defined functions.
Usage
Import capability-grower-configuration-comparison in your Cargo.toml as follows:
[dependencies]
capability-grower-configuration-comparison = "0.1.0"
Implement the configuration comparison by leveraging the traits offered by the crate:
use capability_grower_configuration_comparison::{CompareFullConfiguration, GrowerTreeConfiguration, CompareOutcome};
let config_a = GrowerTreeConfiguration::new(); // Assume implementation exists
let config_b = GrowerTreeConfiguration::new(); // Assume implementation exists
let outcome = config_a.compare_config_to(&config_b);
println!("Comparison result: {:?}", outcome);
Authors
- klebs6 [tpk3.mx@gmail.com]
Edition
- Rust Edition: 2024
Disclaimer
This README.md file was generated by an AI model. While attempts have been made to ensure its accuracy, it may not be entirely correct.
Dependencies
~49–92MB
~1.5M SLoC