pub struct RowDelta {
pub start: usize,
pub replaced: usize,
pub len: usize,
pub src_shift: i64,
}Expand description
Where two frames’ rows differ: the span of the old rows a span of the new
ones replaces, and the offset the rows after it moved by. See
row_delta.
Fields§
§start: usizeThe first row that differs — the length of the common prefix, which is where the new span begins in both the old rows and the new.
replaced: usizeHow many of the old rows, from start, the new span replaces.
len: usizeHow many new rows stand in their place.
src_shift: i64The byte offset every source offset in a row after the span moved by: the rows after the span are the old ones with this added to each offset they carry. Zero when nothing moved, and when no row after the span carries an offset to move.
Implementations§
Trait Implementations§
impl Copy for RowDelta
impl Eq for RowDelta
impl StructuralPartialEq for RowDelta
Auto Trait Implementations§
impl Freeze for RowDelta
impl RefUnwindSafe for RowDelta
impl Send for RowDelta
impl Sync for RowDelta
impl Unpin for RowDelta
impl UnsafeUnpin for RowDelta
impl UnwindSafe for RowDelta
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