pub struct PatchedFile {
pub old_path: Option<PathBuf>,
pub new_path: Option<PathBuf>,
pub language: SourceKind,
pub binary: bool,
pub hunks: Vec<Hunk>,
}Fields§
§old_path: Option<PathBuf>§new_path: Option<PathBuf>§language: SourceKind§binary: bool§hunks: Vec<Hunk>Implementations§
Source§impl PatchedFile
impl PatchedFile
Sourcepub fn primary_path(&self) -> Option<&Path>
pub fn primary_path(&self) -> Option<&Path>
New path if present, else old: the file’s representative path, the new-then-old precedence a rename is reported with.
Trait Implementations§
Source§impl Clone for PatchedFile
impl Clone for PatchedFile
Source§impl Debug for PatchedFile
impl Debug for PatchedFile
impl Eq for PatchedFile
Source§impl PartialEq for PatchedFile
impl PartialEq for PatchedFile
impl StructuralPartialEq for PatchedFile
Auto Trait Implementations§
impl Forget for PatchedFile
impl Freeze for PatchedFile
impl Move for PatchedFile
impl RefUnwindSafe for PatchedFile
impl Send for PatchedFile
impl Sync for PatchedFile
impl Unpin for PatchedFile
impl UnsafeUnpin for PatchedFile
impl UnwindSafe for PatchedFile
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