pub struct TurnUndoFile {
pub path: String,
pub kind: PatchChangeKind,
pub additions: u64,
pub deletions: u64,
}Expand description
One reversed file change.
Fields§
§path: StringWorkspace-relative path.
kind: PatchChangeKindKind of the reversed change.
additions: u64Reversed added-line count.
deletions: u64Reversed deleted-line count.
Trait Implementations§
Source§impl Clone for TurnUndoFile
impl Clone for TurnUndoFile
Source§impl Debug for TurnUndoFile
impl Debug for TurnUndoFile
Source§impl<'de> Deserialize<'de> for TurnUndoFile
impl<'de> Deserialize<'de> for TurnUndoFile
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 TurnUndoFile
Source§impl PartialEq for TurnUndoFile
impl PartialEq for TurnUndoFile
Source§impl Serialize for TurnUndoFile
impl Serialize for TurnUndoFile
impl StructuralPartialEq for TurnUndoFile
Auto Trait Implementations§
impl Forget for TurnUndoFile
impl Freeze for TurnUndoFile
impl RefUnwindSafe for TurnUndoFile
impl Send for TurnUndoFile
impl Sync for TurnUndoFile
impl Unpin for TurnUndoFile
impl UnsafeUnpin for TurnUndoFile
impl UnwindSafe for TurnUndoFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.