pub struct MergedFunctionOutput {
pub strings: Vec<String>,
pub string_map: HashMap<String, u32>,
pub warnings: Vec<CompileWarning>,
}Expand description
Merge multiple function analyzer outputs into a single result.
This is used after parallel analysis to combine results from all functions.
Array types are managed by the thread-safe TypeInternPool in SemaContext,
so only strings and warnings need merging.
Fields§
§strings: Vec<String>All string literals (deduplicated).
string_map: HashMap<String, u32>Mapping from string content to final index.
warnings: Vec<CompileWarning>All warnings from all functions.
Implementations§
Source§impl MergedFunctionOutput
impl MergedFunctionOutput
Sourcepub fn merge_function_output(
&mut self,
output: FunctionAnalyzerOutput,
) -> FunctionOutputRemapping
pub fn merge_function_output( &mut self, output: FunctionAnalyzerOutput, ) -> FunctionOutputRemapping
Merge a function’s output into this merged result.
Returns a remapping for string indices so the function’s AIR can be updated with the final IDs.
Trait Implementations§
Source§impl Debug for MergedFunctionOutput
impl Debug for MergedFunctionOutput
Source§impl Default for MergedFunctionOutput
impl Default for MergedFunctionOutput
Source§fn default() -> MergedFunctionOutput
fn default() -> MergedFunctionOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MergedFunctionOutput
impl RefUnwindSafe for MergedFunctionOutput
impl Send for MergedFunctionOutput
impl Sync for MergedFunctionOutput
impl Unpin for MergedFunctionOutput
impl UnwindSafe for MergedFunctionOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more