pub struct Snapshot { /* private fields */ }Implementations§
Source§impl Snapshot
impl Snapshot
pub fn read_following_symlinks( &self, path: &RepoPath, ) -> Result<SnapshotFileLookup, GitError>
Source§impl Snapshot
impl Snapshot
pub fn files(&self) -> &[RepoPath]
pub fn submodules(&self) -> &[RepoPath]
pub fn changed_files_from( &self, base: &Snapshot, ) -> Result<Vec<RepoPath>, GitError>
pub fn blob_id(&self, path: &RepoPath) -> Option<BlobId>
pub fn parallel_reader(&self) -> ParallelSnapshotReader<'_>
pub fn read(&self, path: &RepoPath) -> Result<Vec<u8>, GitError>
Auto Trait Implementations§
impl !RefUnwindSafe for Snapshot
impl !UnwindSafe for Snapshot
impl Forget for Snapshot
impl Freeze for Snapshotwhere
*const u8 is !null: Freeze,
PhantomData<RepoPath>: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<FileSnapshot<File>> is !null: Freeze,
PhantomData<ArcInner<FileSnapshot<File>>>: Freeze,
*const ThreadSafeRepository is !null: Freeze,
PhantomData<ThreadSafeRepository>: Freeze,
PhantomData<(RepoPath, ObjectId)>: Freeze,
impl Move for Snapshot
impl Send for Snapshotwhere
RawVecInner: Send,
Arc<FileSnapshot<File>>: Send,
BoxRaw<ThreadSafeRepository>: Send,
RawTable<(RepoPath, ObjectId)>: Send,
impl Sync for Snapshotwhere
RawVecInner: Sync,
Arc<FileSnapshot<File>>: Sync,
BoxRaw<ThreadSafeRepository>: Sync,
RawTable<(RepoPath, ObjectId)>: Sync,
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshotwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<RepoPath>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<FileSnapshot<File>> is !null: UnsafeUnpin,
PhantomData<ArcInner<FileSnapshot<File>>>: UnsafeUnpin,
*const ThreadSafeRepository is !null: UnsafeUnpin,
PhantomData<ThreadSafeRepository>: UnsafeUnpin,
PhantomData<(RepoPath, ObjectId)>: UnsafeUnpin,
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