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 path_backing(&self) -> &Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn take_path_backing(&mut self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn return_path_backing(&mut self, backing: Vec<u8, Global>)
pub fn entries_with_paths_by_filter_map<'a, T>(
&'a self,
filter_map: impl FnMut(&'a BStr, &Entry) -> Option<T> + 'a
) -> impl Iterator<Item = (&'a BStr, T)> + 'a
pub fn entries_mut(&mut self) -> &mut [Entry]
pub fn entries_mut_with_paths(
&mut self
) -> impl Iterator<Item = (&mut Entry, &BStr)>
pub fn entries_mut_with_paths_in(
&'state mut self,
backing: &'backing Vec<u8, Global>
) -> impl Iterator<Item = (&'state mut Entry, &'backing 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