memscope_rs/estimation/mod.rs
1//! Intelligent size estimation module
2//!
3//! Provides accurate memory size estimation functionality, supporting:
4//! - Precise size calculation for basic types
5//! - Pattern matching estimation for complex types
6//! - Dynamic learning and adaptive estimation
7//! - Platform-specific size adaptation
8//!
9//! # Examples
10//!
11//! ```rust
12//! use memscope_rs::estimation::{SmartSizeEstimator, SizeEstimator};
13//!
14//! let estimator = SmartSizeEstimator::new();
15//! let size = estimator.estimate_size("Vec<i32>").unwrap_or(24);
16//! ```
17
18pub mod size_estimator;
19pub mod type_classifier;
20
21pub use size_estimator::{LearnedSize, SizeEstimator, SmartSizeEstimator};
22pub use type_classifier::{TypeCategory, TypeClassifier};