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§
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