pub struct FileSelection {
pub path: String,
pub relevance_score: f32,
pub reasons: Vec<SelectionReason>,
pub token_count: usize,
pub lexical_score: f32,
}Expand description
A selected file with relevance information.
Fields§
§path: StringFile path (relative to project root)
relevance_score: f32Relevance score (0.0-1.0)
reasons: Vec<SelectionReason>Why this file was selected
token_count: usizeToken count for this file
lexical_score: f32Number of distinct task tokens that appear in this file’s path or in the
names of the symbols that selected it (see FileSelection::compute_lexical_score).
A high-precision relevance signal layered on top of the semantic/graph tiers.
Trait Implementations§
Source§impl Clone for FileSelection
impl Clone for FileSelection
Source§fn clone(&self) -> FileSelection
fn clone(&self) -> FileSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSelection
impl Debug for FileSelection
Source§impl HasTokenCount for FileSelection
impl HasTokenCount for FileSelection
Source§fn token_count(&self) -> usize
fn token_count(&self) -> usize
Get the token count for this item.
Auto Trait Implementations§
impl Freeze for FileSelection
impl RefUnwindSafe for FileSelection
impl Send for FileSelection
impl Sync for FileSelection
impl Unpin for FileSelection
impl UnsafeUnpin for FileSelection
impl UnwindSafe for FileSelection
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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