pub struct Lines {
pub side: String,
pub start: u32,
pub end: u32,
pub start_text: String,
pub end_text: String,
}Expand description
The lines a reviewer pointed at, in file coordinates.
An observation, not a decision: a renderer reports what its cursor was on,
and the engine turns it into an anchor — which side, how far into the hunk,
how many lines, and what text to re-find it by. None at the call site
means the whole hunk, which is what a finding filed from its header
annotates.
Fields§
§side: String“old” | “new”
start: u32§end: u32§start_text: String§end_text: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Lines
impl RefUnwindSafe for Lines
impl Send for Lines
impl Sync for Lines
impl Unpin for Lines
impl UnsafeUnpin for Lines
impl UnwindSafe for Lines
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