pub struct Block {
pub at: usize,
pub removed: Vec<String>,
pub added: Range<usize>,
}Expand description
One run of removed and added lines with no kept line between them.
Fields§
§at: usizeThe new file’s line number where the block sits.
removed: Vec<String>The removed lines, in order.
added: Range<usize>Indices into Change::added of the lines the block adds.
Trait Implementations§
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Forget for Block
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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