pub struct Line {
pub line: String,
pub file: PathBuf,
pub line_number: NonZeroUsize,
pub column_range: Range<NonZeroUsize>,
}
Expand description
Represents a specific line found in a search operation.
This struct contains details about a line of text found in a file, including its content and location.
Fields§
§line: String
The content of the line.
file: PathBuf
The file path where the line is located.
line_number: NonZeroUsize
The line number within the file.
column_range: Range<NonZeroUsize>
The range of columns in the line where the text was found.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Line
impl<'de> Deserialize<'de> for Line
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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