/// A [`DiffHook`] that captures all diff operations. #[derive(Default, Clone)] pubstruct Capture(Vec<DiffOp>);
impl Capture { /// Creates a new capture hook. pubfn new() -> Capture {
Capture::default()
}
/// Converts the capture hook into a vector of ops. pubfn into_ops(self) -> Vec<DiffOp> { self.0
}
/// Isolate change clusters by eliminating ranges with no changes. /// /// This is equivalent to calling [`group_diff_ops`] on [`Capture::into_ops`]. pubfn into_grouped_ops(self, n: usize) -> Vec<Vec<DiffOp>> {
group_diff_ops(self.into_ops(), n)
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.