pub struct ViewGuard<G> { /* private fields */ }Expand description
Wraps a mode’s existing Guard and additionally unpublishes its
MagitView on drop.
Retained as the composition point for a mode whose Guard already carries other teardown (magit-status’s fold-source registration) and which also publishes a view.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<G> Freeze for ViewGuard<G>where
G: Freeze,
impl<G> RefUnwindSafe for ViewGuard<G>where
G: RefUnwindSafe,
impl<G> Send for ViewGuard<G>where
G: Send,
impl<G> Sync for ViewGuard<G>where
G: Sync,
impl<G> Unpin for ViewGuard<G>where
G: Unpin,
impl<G> UnsafeUnpin for ViewGuard<G>where
G: UnsafeUnpin,
impl<G> UnwindSafe for ViewGuard<G>where
G: UnwindSafe,
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