pub struct PathMatch {
pub score: f64,
pub positions: Vec<usize>,
pub worktree_id: usize,
pub path: Arc<Path>,
pub path_prefix: Arc<str>,
pub distance_to_relative_ancestor: usize,
}
Fields§
§score: f64
§positions: Vec<usize>
§worktree_id: usize
§path: Arc<Path>
§path_prefix: Arc<str>
§distance_to_relative_ancestor: usize
Number of steps removed from a shared parent with the relative path Used to order closer paths first in the search list
Trait Implementations§
source§impl Ord for PathMatch
impl Ord for PathMatch
source§impl PartialEq<PathMatch> for PathMatch
impl PartialEq<PathMatch> for PathMatch
source§impl PartialOrd<PathMatch> for PathMatch
impl PartialOrd<PathMatch> for PathMatch
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for PathMatch
Auto Trait Implementations§
impl RefUnwindSafe for PathMatch
impl Send for PathMatch
impl Sync for PathMatch
impl Unpin for PathMatch
impl UnwindSafe for PathMatch
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.