pub struct LineInfo {
pub line_number: usize,
pub byte_start: usize,
pub byte_end: usize,
pub content: String,
}Expand description
Information about a single line for the LinesChanged hook
Fields§
§line_number: usizeLine number (0-based)
byte_start: usizeByte offset where the line starts in the buffer
byte_end: usizeByte offset where the line ends (exclusive)
content: StringThe content of the line
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineInfo
impl RefUnwindSafe for LineInfo
impl Send for LineInfo
impl Sync for LineInfo
impl Unpin for LineInfo
impl UnsafeUnpin for LineInfo
impl UnwindSafe for LineInfo
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