Expand description
Input structs for the pure-compute API (WASM-safe serde types). Input structs for the pure-compute API.
These are the types that WASM consumers and other embedders supply to the
compute_* functions. All are plain serde structs with no I/O, no
tree-sitter, and no std::time.
Structs§
- Boundary
DefInput - A single boundary definition for
BoundarySpecInput. - Boundary
Spec Input - Boundary specification for
crate::compute_boundary_violations. - Change
Coupling Config Input - Configuration for
crate::compute_change_coupling. - CoChange
Event Input - A single commit event for change-coupling analysis.
- Dependency
Graph Input - Input graph for pure-compute functions.
- Edge
Input - A directed edge between two nodes in a
DependencyGraphInput. - Leiden
Config Input - Leiden algorithm configuration for pure-compute callers.
- Node
Input - A single node in a
DependencyGraphInput. - Normalize
Node - A node in the pattern AST subtree for
crate::normalize_and_hash. - Pattern
Instance Input - A single pattern instance supplied by a foreign extractor.
- Pattern
Location Input - Location of a pattern instance within a source file.
- Prior
Partition - A prior partition snapshot for consecutive-snapshot stability scoring.
- Threshold
Override Input - Per-category threshold override for
ThresholdsInput. - Thresholds
Input - Threshold configuration for
crate::compute_thresholds_check.
Enums§
- Quality
Function Input - Quality function selection for
LeidenConfigInput.
Functions§
- edge_
weight_ key - Encodes a
(source, target)node-ID pair as an edge-weight map key. - split_
edge_ weight_ key - Splits an edge-weight map key produced by
edge_weight_keyinto(source, target). - validate_
node_ id - Validates a node ID according to canonical rules.