Struct project2::worktree::RepositoryWorkDirectory
source · pub struct RepositoryWorkDirectory(_);
Expand description
This path corresponds to the ‘content path’ (the folder that contains the .git)
Trait Implementations§
source§impl AsRef<Path> for RepositoryWorkDirectory
impl AsRef<Path> for RepositoryWorkDirectory
source§impl Clone for RepositoryWorkDirectory
impl Clone for RepositoryWorkDirectory
source§fn clone(&self) -> RepositoryWorkDirectory
fn clone(&self) -> RepositoryWorkDirectory
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 RepositoryWorkDirectory
impl Debug for RepositoryWorkDirectory
source§impl Default for RepositoryWorkDirectory
impl Default for RepositoryWorkDirectory
source§impl Ord for RepositoryWorkDirectory
impl Ord for RepositoryWorkDirectory
source§fn cmp(&self, other: &RepositoryWorkDirectory) -> Ordering
fn cmp(&self, other: &RepositoryWorkDirectory) -> 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<RepositoryWorkDirectory> for RepositoryWorkDirectory
impl PartialEq<RepositoryWorkDirectory> for RepositoryWorkDirectory
source§fn eq(&self, other: &RepositoryWorkDirectory) -> bool
fn eq(&self, other: &RepositoryWorkDirectory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<RepositoryWorkDirectory> for RepositoryWorkDirectory
impl PartialOrd<RepositoryWorkDirectory> for RepositoryWorkDirectory
source§fn partial_cmp(&self, other: &RepositoryWorkDirectory) -> Option<Ordering>
fn partial_cmp(&self, other: &RepositoryWorkDirectory) -> 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 RepositoryWorkDirectory
impl StructuralEq for RepositoryWorkDirectory
impl StructuralPartialEq for RepositoryWorkDirectory
Auto Trait Implementations§
impl RefUnwindSafe for RepositoryWorkDirectory
impl Send for RepositoryWorkDirectory
impl Sync for RepositoryWorkDirectory
impl Unpin for RepositoryWorkDirectory
impl UnwindSafe for RepositoryWorkDirectory
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<K> MapSeekTarget<K> for Kwhere
K: Debug + Ord,
impl<K> MapSeekTarget<K> for Kwhere K: Debug + Ord,
fn cmp_cursor(&self, cursor_location: &K) -> Ordering
§impl<T> PathExt for Twhere
T: AsRef<Path>,
impl<T> PathExt for Twhere T: AsRef<Path>,
§fn compact(&self) -> PathBuf
fn compact(&self) -> PathBuf
Compacts a given file path by replacing the user’s home directory
prefix with a tilde (~
).
Returns
- A
PathBuf
containing the compacted file path. If the input path does not have the user’s home directory prefix, or if we are not on Linux or macOS, the original path is returned unchanged.
§fn icon_suffix(&self) -> Option<&str>
fn icon_suffix(&self) -> Option<&str>
Returns a suffix of the path that is used to determine which file icon to use
Returns a file’s extension or, if the file is hidden, its name without the leading dot