pub struct File {
pub file: Rc<String>,
pub op: Op,
pub line: usize,
pub count: usize,
}
Expand description
An object capturing meta data about a diff.
Fields§
§file: Rc<String>
The file the diff belongs to.
op: Op
Whether the diff adds or removes lines.
line: usize
The start line of the diff.
count: usize
The number of lines in the diff.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl !Send for File
impl !Sync for File
impl Unpin for File
impl UnwindSafe for File
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