multi_buffer: Split multi_buffer into more modules (#41033)

There are a of separate APIs in this, partially interleaved making it
difficult to grasp.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth
2025-10-23 17:57:52 +00:00
committed by GitHub
parent d83ed4e03e
commit 6aaf19f276
12 changed files with 1215 additions and 1059 deletions
+7 -4
View File
@@ -2078,12 +2078,15 @@ impl Buffer {
}
}
/// Set the change bit for all "listeners".
fn was_changed(&mut self) {
self.change_bits.retain(|change_bit| {
change_bit.upgrade().is_some_and(|bit| {
bit.replace(true);
true
})
change_bit
.upgrade()
.inspect(|bit| {
_ = bit.replace(true);
})
.is_some()
});
}