blob: 67582641d0767cea88c62f592daf65174b399f61 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/// Configuration for the module pathfinder analysis.
///
/// Controls behavior such as whether dispatch-tree related types
/// (`__internal_dispatcher_*`) should be extracted.
#[derive(Debug, Clone, Default)]
pub struct PathfinderConfig {
/// Whether to also extract `__internal_dispatcher_*` static types
/// generated by the `dispatch_tree` feature in Mingling.
pub use_dispatch_tree: bool,
}
impl PathfinderConfig {
/// Create a config with `use_dispatch_tree` enabled.
pub fn with_dispatch_tree() -> Self {
Self {
use_dispatch_tree: true,
}
}
}
|