Skip to main content

first_divergence

Function first_divergence 

Source
pub fn first_divergence(
    source: &str,
    formatted: &str,
) -> Result<Option<String>, ParseError>
Expand description

If source and formatted are not semantically equivalent, return a short human-readable description of the first divergent event pair. Returns None if the streams agree.

ยงErrors

Returns ParseError if either input cannot be parsed safely.