Skip to main content

compare_sources

Function compare_sources 

Source
pub fn compare_sources(before: &str, after: &str) -> Result<Option<Difference>>
Expand description

Compare two sources as code. Ok(None) means equal modulo comments, whitespace and doc attributes; Ok(Some(d)) names the first item that differs.