pub(super) struct NameStatusEntry {
pub status: FileStatus,
pub path: String,
pub old_path: Option<String>,
}Expand description
One git diff --name-status line: the classification, the new path,
and the old path a rename or copy names (absent for every other
status). The old path survives here rather than in FileHunks so
the content read can carry both sides of a rename while the overlay
keeps the one it draws.
Fields§
§status: FileStatus§path: String§old_path: Option<String>Trait Implementations§
Source§impl Clone for NameStatusEntry
impl Clone for NameStatusEntry
Source§impl Debug for NameStatusEntry
impl Debug for NameStatusEntry
impl Eq for NameStatusEntry
Source§impl PartialEq for NameStatusEntry
impl PartialEq for NameStatusEntry
impl StructuralPartialEq for NameStatusEntry
Auto Trait Implementations§
impl Freeze for NameStatusEntry
impl RefUnwindSafe for NameStatusEntry
impl Send for NameStatusEntry
impl Sync for NameStatusEntry
impl Unpin for NameStatusEntry
impl UnsafeUnpin for NameStatusEntry
impl UnwindSafe for NameStatusEntry
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.