pub struct FileContents {
pub head: Option<Vec<u8>>,
pub index: Option<Vec<u8>>,
}Expand description
HEAD’s and the index’s blob bytes for one repo-relative path — the
gutter diff’s inputs. head_sha is the context’s resolved HEAD (an
unborn repository passes None and HEAD is not asked). Absent from
HEAD’s tree / absent from the index are honest Nones.
Fields§
§head: Option<Vec<u8>>§index: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for FileContents
impl Clone for FileContents
Source§fn clone(&self) -> FileContents
fn clone(&self) -> FileContents
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 FileContents
impl Debug for FileContents
impl Eq for FileContents
Source§impl PartialEq for FileContents
impl PartialEq for FileContents
impl StructuralPartialEq for FileContents
Auto Trait Implementations§
impl Freeze for FileContents
impl RefUnwindSafe for FileContents
impl Send for FileContents
impl Sync for FileContents
impl Unpin for FileContents
impl UnsafeUnpin for FileContents
impl UnwindSafe for FileContents
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