#[non_exhaustive]pub struct NarrowingResult {
pub file: PathBuf,
pub symbol: Option<String>,
pub score: f32,
pub context: String,
}Expand description
A single result from hierarchical narrowing.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: PathBufPath of the file containing the symbol.
symbol: Option<String>Symbol name, if a specific symbol was identified.
score: f32Relevance score in the range [0.0, 1.0].
context: StringSkeleton line or signature used as context.
Trait Implementations§
Source§impl Clone for NarrowingResult
impl Clone for NarrowingResult
Source§fn clone(&self) -> NarrowingResult
fn clone(&self) -> NarrowingResult
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 moreAuto Trait Implementations§
impl Freeze for NarrowingResult
impl RefUnwindSafe for NarrowingResult
impl Send for NarrowingResult
impl Sync for NarrowingResult
impl Unpin for NarrowingResult
impl UnsafeUnpin for NarrowingResult
impl UnwindSafe for NarrowingResult
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