Struct project2::worktree::WorkDirectoryEntry
source · pub struct WorkDirectoryEntry(_);
Methods from Deref<Target = ProjectEntryId>§
pub const MAX: Self = _
pub fn to_proto(&self) -> u64
pub fn to_usize(&self) -> usize
Trait Implementations§
source§impl Clone for WorkDirectoryEntry
impl Clone for WorkDirectoryEntry
source§fn clone(&self) -> WorkDirectoryEntry
fn clone(&self) -> WorkDirectoryEntry
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 WorkDirectoryEntry
impl Debug for WorkDirectoryEntry
source§impl Deref for WorkDirectoryEntry
impl Deref for WorkDirectoryEntry
source§impl<'a> From<ProjectEntryId> for WorkDirectoryEntry
impl<'a> From<ProjectEntryId> for WorkDirectoryEntry
source§fn from(value: ProjectEntryId) -> Self
fn from(value: ProjectEntryId) -> Self
Converts to this type from the input type.
source§impl Ord for WorkDirectoryEntry
impl Ord for WorkDirectoryEntry
source§fn cmp(&self, other: &WorkDirectoryEntry) -> Ordering
fn cmp(&self, other: &WorkDirectoryEntry) -> 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<WorkDirectoryEntry> for WorkDirectoryEntry
impl PartialEq<WorkDirectoryEntry> for WorkDirectoryEntry
source§fn eq(&self, other: &WorkDirectoryEntry) -> bool
fn eq(&self, other: &WorkDirectoryEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<WorkDirectoryEntry> for WorkDirectoryEntry
impl PartialOrd<WorkDirectoryEntry> for WorkDirectoryEntry
source§fn partial_cmp(&self, other: &WorkDirectoryEntry) -> Option<Ordering>
fn partial_cmp(&self, other: &WorkDirectoryEntry) -> 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 WorkDirectoryEntry
impl StructuralEq for WorkDirectoryEntry
impl StructuralPartialEq for WorkDirectoryEntry
Auto Trait Implementations§
impl RefUnwindSafe for WorkDirectoryEntry
impl Send for WorkDirectoryEntry
impl Sync for WorkDirectoryEntry
impl Unpin for WorkDirectoryEntry
impl UnwindSafe for WorkDirectoryEntry
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.