pub struct BlameGutter {
pub lines: Vec<BlameLine>,
pub revision: BufferRevision,
pub request: Option<Ticket<BlameKey>>,
}Expand description
Per-buffer blame gutter state (0011 §3), keyed by canonical path — no parallel vector to keep aligned, and index churn can never pair one buffer with another’s blame. Valid only while the buffer’s revision and line count still match the capture.
Fields§
§lines: Vec<BlameLine>§revision: BufferRevisionBuffer revision when the blame was captured; any edit since invalidates the line↔buffer-line pairing.
request: Option<Ticket<BlameKey>>The pending request while the gutter loads; None once loaded.
A late result for a removed request is rejected by ticket, so
toggle-off/on at the same path can never cross-pollinate.
Trait Implementations§
Source§impl Clone for BlameGutter
impl Clone for BlameGutter
Source§fn clone(&self) -> BlameGutter
fn clone(&self) -> BlameGutter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlameGutter
impl RefUnwindSafe for BlameGutter
impl Send for BlameGutter
impl Sync for BlameGutter
impl Unpin for BlameGutter
impl UnsafeUnpin for BlameGutter
impl UnwindSafe for BlameGutter
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