pub struct RopeSnapshotRegistry { /* private fields */ }Expand description
Process-wide registry of live RopeSnapshots. Entries are weak
references; drops deregister explicitly so the map does not bloat
with stale weaks during steady state.
Implementations§
Source§impl RopeSnapshotRegistry
impl RopeSnapshotRegistry
Sourcepub fn live_snapshot_count(&self) -> usize
pub fn live_snapshot_count(&self) -> usize
Number of currently-live RopeSnapshots. Strong refs that have
already been dropped are excluded.
Sourcepub fn distinct_arc_heads(&self) -> usize
pub fn distinct_arc_heads(&self) -> usize
Count of distinct Arc<Rope> heads across live snapshots. A
healthy editor with N snapshots all built from one source
returns 1; an N-distinct-generations leak returns N.
Trait Implementations§
Source§impl Debug for RopeSnapshotRegistry
impl Debug for RopeSnapshotRegistry
Auto Trait Implementations§
impl !Freeze for RopeSnapshotRegistry
impl Forget for RopeSnapshotRegistry
impl Move for RopeSnapshotRegistry
impl RefUnwindSafe for RopeSnapshotRegistry
impl Send for RopeSnapshotRegistry
impl Sync for RopeSnapshotRegistry
impl Unpin for RopeSnapshotRegistry
impl UnsafeUnpin for RopeSnapshotRegistry
impl UnwindSafe for RopeSnapshotRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more