pub struct PathHash {
pub path: String,
pub worktree: Option<FileHash>,
pub index: Option<FileHash>,
}Expand description
The index and working-tree state of one file, None where it is
absent. Compared with == for the undo/redo preconditions.
Fields§
§path: String§worktree: Option<FileHash>§index: Option<FileHash>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathHash
impl<'de> Deserialize<'de> for PathHash
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
impl Eq for PathHash
impl StructuralPartialEq for PathHash
Auto Trait Implementations§
impl Forget for PathHash
impl Freeze for PathHash
impl Move for PathHash
impl RefUnwindSafe for PathHash
impl Send for PathHash
impl Sync for PathHash
impl Unpin for PathHash
impl UnsafeUnpin for PathHash
impl UnwindSafe for PathHash
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