Struct project2::ProjectPath
source · pub struct ProjectPath {
pub worktree_id: WorktreeId,
pub path: Arc<Path>,
}
Fields§
§worktree_id: WorktreeId
§path: Arc<Path>
Trait Implementations§
source§impl Clone for ProjectPath
impl Clone for ProjectPath
source§fn clone(&self) -> ProjectPath
fn clone(&self) -> ProjectPath
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProjectPath
impl Debug for ProjectPath
source§impl<P: AsRef<Path>> From<(WorktreeId, P)> for ProjectPath
impl<P: AsRef<Path>> From<(WorktreeId, P)> for ProjectPath
source§fn from((worktree_id, path): (WorktreeId, P)) -> Self
fn from((worktree_id, path): (WorktreeId, P)) -> Self
Converts to this type from the input type.
source§impl Hash for ProjectPath
impl Hash for ProjectPath
source§impl Ord for ProjectPath
impl Ord for ProjectPath
source§fn cmp(&self, other: &ProjectPath) -> Ordering
fn cmp(&self, other: &ProjectPath) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ProjectPath> for ProjectPath
impl PartialEq<ProjectPath> for ProjectPath
source§fn eq(&self, other: &ProjectPath) -> bool
fn eq(&self, other: &ProjectPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ProjectPath> for ProjectPath
impl PartialOrd<ProjectPath> for ProjectPath
source§fn partial_cmp(&self, other: &ProjectPath) -> Option<Ordering>
fn partial_cmp(&self, other: &ProjectPath) -> Option<Ordering>
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 ProjectPath
impl StructuralEq for ProjectPath
impl StructuralPartialEq for ProjectPath
Auto Trait Implementations§
impl RefUnwindSafe for ProjectPath
impl Send for ProjectPath
impl Sync for ProjectPath
impl Unpin for ProjectPath
impl UnwindSafe for ProjectPath
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.source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.