pub struct FindResult {Show 15 fields
pub symbol: String,
pub name: String,
pub scope: Option<String>,
pub root: PathBuf,
pub hits: Vec<Hit>,
pub matched_total: usize,
pub truncated: bool,
pub limit: usize,
pub files_scanned: usize,
pub bytes_scanned: u64,
pub definitions_indexed: usize,
pub skipped: Skipped,
pub ignore_files: Vec<String>,
pub caveats: Vec<String>,
pub elapsed: Duration,
}Expand description
The result of one find.
Fields§
§symbol: StringThe symbol as given.
name: StringThe name part after scope splitting (find for App::find).
scope: Option<String>The scope part, if the symbol had one and it was used to filter.
root: PathBufAbsolute path of the tree that was scanned.
hits: Vec<Hit>Hits, best first, at most limit.
matched_total: usizeHits before truncation.
truncated: bool§limit: usize§files_scanned: usizeFiles whose text reached an extractor.
bytes_scanned: u64§definitions_indexed: usizeDefinitions extracted across all scanned files, matched or not.
skipped: Skipped§ignore_files: Vec<String>Root-relative paths of the ignore files that were honoured, in walk order.
caveats: Vec<String>What the counts cannot say: no ignore file, a symbol defined in several files, a scope that matched nothing. Never empty out of politeness (SPEC §7, same rule).
elapsed: DurationTrait Implementations§
Source§impl Clone for FindResult
impl Clone for FindResult
Source§fn clone(&self) -> FindResult
fn clone(&self) -> FindResult
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 FindResult
impl RefUnwindSafe for FindResult
impl Send for FindResult
impl Sync for FindResult
impl Unpin for FindResult
impl UnsafeUnpin for FindResult
impl UnwindSafe for FindResult
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