pub struct BlameRequests { /* private fields */ }Expand description
MG.26b: what a pending blame should be, keyed by the buffer name it will land on.
Effect::ToggleMode carries only a mode name, which is right — the
grammar crate must not learn about blame directions. So an action
that wants a non-default blame (reverse, or a specific revision)
leaves the request here first, and on_activate consumes it. Keyed
by name rather than BufferId because the buffer may not exist
yet: the reverse path opens a blob buffer and activates the mode on
it in one Effect::Many.
Implementations§
Source§impl BlameRequests
impl BlameRequests
pub fn put(&self, buffer_name: String, direction: BlameDirection, rev: String)
Trait Implementations§
Source§impl Default for BlameRequests
impl Default for BlameRequests
Source§fn default() -> BlameRequests
fn default() -> BlameRequests
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for BlameRequests
impl RefUnwindSafe for BlameRequests
impl Send for BlameRequests
impl Sync for BlameRequests
impl Unpin for BlameRequests
impl UnsafeUnpin for BlameRequests
impl UnwindSafe for BlameRequests
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