Skip to main content

FindResult

Struct FindResult 

Source
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: String

The symbol as given.

§name: String

The 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: PathBuf

Absolute path of the tree that was scanned.

§hits: Vec<Hit>

Hits, best first, at most limit.

§matched_total: usize

Hits before truncation.

§truncated: bool§limit: usize§files_scanned: usize

Files whose text reached an extractor.

§bytes_scanned: u64§definitions_indexed: usize

Definitions 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: Duration

Trait Implementations§

Source§

impl Clone for FindResult

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for FindResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.