pub struct DiffModeGuard { /* private fields */ }Expand description
DX.3-C7 (2026-06-24): deregisters the buffer’s HunkFoldSource when
diff-mode deactivates (the diff session closed, or the buffer’s mode
set changed). Drop fires from the mode guard store when
deactivate_minor runs — the same Drop-based lifecycle multibuffer’s
MultibufferModeGuard uses for its excerpt/file-boundary fold sources.
Empty when the fold service / diff subsystem weren’t registered (some
test harnesses) — Drop is then a no-op.
Trait Implementations§
Source§impl Drop for DiffModeGuard
impl Drop for DiffModeGuard
Auto Trait Implementations§
impl !RefUnwindSafe for DiffModeGuard
impl !UnwindSafe for DiffModeGuard
impl Freeze for DiffModeGuard
impl Send for DiffModeGuard
impl Sync for DiffModeGuard
impl Unpin for DiffModeGuard
impl UnsafeUnpin for DiffModeGuard
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more