Skip to main content

diff_view_source

Function diff_view_source 

Source
pub fn diff_view_source(
    rel_file: &str,
    old_src: &str,
    new_src: &str,
    generation: u64,
) -> ViewDiffOutcome
Expand description

Diffs old_src against new_src for a .rs file at rel_file containing view! { ... } blocks and classifies the edit as ViewDiffOutcome::NoOp, ViewDiffOutcome::Tier1Patch, or ViewDiffOutcome::NeedsRebuild.