pub struct LocateItem {
pub path: String,
pub lines: String,
pub kind: String,
pub symbol: Option<String>,
pub role: Option<&'static str>,
pub group: Option<&'static str>,
pub score: f64,
pub tokens: u32,
pub reasons: Vec<Reason>,
}Expand description
Rank is the array position (items are emitted in selection order);
role is serialized only for "changed" — absence means context.
Fields§
§path: String§lines: String§kind: String§symbol: Option<String>§role: Option<&'static str>§group: Option<&'static str>Coarse impact group: test, type, or config; absent = general
code (callers and friends). Path- and kind-derived, presentation only.
score: f64§tokens: u32§reasons: Vec<Reason>Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocateItem
impl RefUnwindSafe for LocateItem
impl Send for LocateItem
impl Sync for LocateItem
impl Unpin for LocateItem
impl UnsafeUnpin for LocateItem
impl UnwindSafe for LocateItem
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more