pub struct Candidate<'c> {
pub path: &'c Path,
pub subpath: &'c str,
pub name: &'c str,
pub regular_file: bool,
}
Expand description
something which can be evaluated by a pattern to produce either a score or a more precise match
Fields
path: &'c Path
path to the file to open if the pattern searches into files
subpath: &'c str
path from the current root
name: &'c str
filename
regular_file: bool
whether the file is regular (ie has a searchable content)
Implementations
Trait Implementations
impl<'c> Copy for Candidate<'c>
Auto Trait Implementations
impl<'c> RefUnwindSafe for Candidate<'c>
impl<'c> Send for Candidate<'c>
impl<'c> Sync for Candidate<'c>
impl<'c> Unpin for Candidate<'c>
impl<'c> UnwindSafe for Candidate<'c>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more