Expand description
Smart size estimation and type classification Intelligent size estimation module
Provides accurate memory size estimation functionality, supporting:
- Precise size calculation for basic types
- Pattern matching estimation for complex types
- Dynamic learning and adaptive estimation
- Platform-specific size adaptation
§Examples
use memscope_rs::estimation::{SmartSizeEstimator, SizeEstimator};
let estimator = SmartSizeEstimator::new();
let size = estimator.estimate_size("Vec<i32>").unwrap_or(24);Re-exports§
pub use size_estimator::LearnedSize;pub use size_estimator::SizeEstimator;pub use size_estimator::SmartSizeEstimator;pub use type_classifier::TypeCategory;pub use type_classifier::TypeClassifier;