pub struct LineRange {
pub start: i64,
pub end: i64,
}Expand description
A half-open [start, end) line range (0-based) for log -L hunk
restriction. Mirrors diff.c’s struct range.
Fields§
§start: i640-based inclusive start line (post-image).
end: i640-based exclusive end line (post-image).
Trait Implementations§
impl Copy for LineRange
impl Eq for LineRange
impl StructuralPartialEq for LineRange
Auto Trait Implementations§
impl Freeze for LineRange
impl RefUnwindSafe for LineRange
impl Send for LineRange
impl Sync for LineRange
impl Unpin for LineRange
impl UnsafeUnpin for LineRange
impl UnwindSafe for LineRange
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