Skip to main content

explain_actions

Function explain_actions 

Source
pub fn explain_actions(
    diagnostics: &[Diagnostic],
    requested: Span,
) -> Vec<CodeActionOrCommand>
Expand description

One “Explain code” action per distinct curated code among the diagnostics whose span intersects requested (the same keying rule as crate::code_actions::quick_fixes). In diagnostic order.