#[non_exhaustive]pub struct ChangedPath {
pub status: char,
pub path: String,
pub old_path: Option<String>,
}Expand description
One entry from jj diff --summary: a single-letter status (M/A/D/…)
and the (forward-slash-normalised) path it applies to — the new path for a
rename/copy, with the original on old_path.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: charStatus letter (M modified, A added, D deleted, R renamed,
C copied).
path: StringThe path the status applies to — the new path for a rename/copy.
old_path: Option<String>For a rename (R) or copy (C), the original path; None otherwise.
Trait Implementations§
Source§impl Clone for ChangedPath
impl Clone for ChangedPath
Source§fn clone(&self) -> ChangedPath
fn clone(&self) -> ChangedPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChangedPath
impl Debug for ChangedPath
impl Eq for ChangedPath
Source§impl PartialEq for ChangedPath
impl PartialEq for ChangedPath
Source§fn eq(&self, other: &ChangedPath) -> bool
fn eq(&self, other: &ChangedPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChangedPath
Auto Trait Implementations§
impl Freeze for ChangedPath
impl RefUnwindSafe for ChangedPath
impl Send for ChangedPath
impl Sync for ChangedPath
impl Unpin for ChangedPath
impl UnsafeUnpin for ChangedPath
impl UnwindSafe for ChangedPath
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