pub fn format_yaml_range(
source: &str,
start: usize,
end: usize,
) -> Result<Option<RangeEdit>, FormatError>Expand description
Format only the smallest block mapping that contains start..end.
Returns Ok(None) when that mapping is already canonical. The spliced file
passes the same guard as format_yaml.