Struct git_repository::index::File
source · [−]Expand description
An index file whose state was read from a file on disk.
Fields
state: State
path: PathBuf
checksum: ObjectId
The checksum of all bytes prior to the checksum itself.
Implementations
Methods from Deref<Target = State>
pub fn version(&self) -> Version
pub fn entries(&self) -> &[Entry]
pub fn entries_mut(&mut self) -> &mut [Entry]
pub fn entries_mut_with_paths(
&mut self
) -> impl Iterator<Item = (&mut Entry, &BStr)>
pub fn tree(&self) -> Option<&Tree>
pub fn link(&self) -> Option<&Link>
pub fn resolve_undo(&self) -> Option<&Vec<ResolvePath, Global>>
pub fn untracked(&self) -> Option<&UntrackedCache>
pub fn fs_monitor(&self) -> Option<&FsMonitor>
pub fn verify_entries(&self) -> Result<(), Error>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more