pub struct WorktreeKey(/* private fields */);Expand description
Stable coordination identity for one repository worktree.
Implementations§
Source§impl WorktreeKey
impl WorktreeKey
Sourcepub fn derive(repository: &RepositoryId, worktree: &WorktreeId) -> Self
pub fn derive(repository: &RepositoryId, worktree: &WorktreeId) -> Self
Derives the coordination identity from repository and worktree identities.
Trait Implementations§
Source§impl Clone for WorktreeKey
impl Clone for WorktreeKey
Source§impl Debug for WorktreeKey
impl Debug for WorktreeKey
Source§impl<'de> Deserialize<'de> for WorktreeKey
impl<'de> Deserialize<'de> for WorktreeKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WorktreeKey
impl Display for WorktreeKey
impl Eq for WorktreeKey
Source§impl FromStr for WorktreeKey
impl FromStr for WorktreeKey
Source§impl Hash for WorktreeKey
impl Hash for WorktreeKey
Source§impl Ord for WorktreeKey
impl Ord for WorktreeKey
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for WorktreeKey
impl PartialEq for WorktreeKey
Source§impl PartialOrd for WorktreeKey
impl PartialOrd for WorktreeKey
Source§impl Serialize for WorktreeKey
impl Serialize for WorktreeKey
impl StructuralPartialEq for WorktreeKey
Auto Trait Implementations§
impl Freeze for WorktreeKey
impl RefUnwindSafe for WorktreeKey
impl Send for WorktreeKey
impl Sync for WorktreeKey
impl Unpin for WorktreeKey
impl UnsafeUnpin for WorktreeKey
impl UnwindSafe for WorktreeKey
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