pub struct Hit {
pub char_offset: Option<i32>,
pub code_snippet: Option<String>,
pub column: Option<i32>,
pub length: Option<i32>,
pub line: Option<i32>,
pub type_: Option<String>,
}Expand description
Describes the position of a piece of text in a document.
Fields§
§char_offset: Option<i32>Gets or sets the start character offset of a piece of text.
code_snippet: Option<String>Gets or sets an extract of code where the match appears. Usually it is the line where there is the match.
column: Option<i32>Gets or sets the column number where the match appears in the line.
length: Option<i32>Gets or sets the length of a piece of text.
line: Option<i32>Gets or sets the line number where the match appears in the file.
type_: Option<String>Gets or sets the name of type of a piece of text.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hit
impl<'de> Deserialize<'de> for Hit
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
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnwindSafe for Hit
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