pub struct MagitHunkGuard { /* private fields */ }Expand description
MG.45: deregisters this buffer’s diff-fold source.
Drop-based, the same lifecycle MagitStatusGuard and
DiffModeGuard use — a source left registered on a buffer whose
mode has gone would keep computing folds over text it no longer
describes.
Trait Implementations§
Source§impl Default for MagitHunkGuard
impl Default for MagitHunkGuard
Source§fn default() -> MagitHunkGuard
fn default() -> MagitHunkGuard
Returns the “default value” for a type. Read more
Source§impl Drop for MagitHunkGuard
impl Drop for MagitHunkGuard
Auto Trait Implementations§
impl !RefUnwindSafe for MagitHunkGuard
impl !UnwindSafe for MagitHunkGuard
impl Freeze for MagitHunkGuard
impl Send for MagitHunkGuard
impl Sync for MagitHunkGuard
impl Unpin for MagitHunkGuard
impl UnsafeUnpin for MagitHunkGuard
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