pub struct GitVfs<'r> { /* private fields */ }Available on crate feature
git only.Expand description
A virtual filesystem that reads from a git repository.
Implementations§
Trait Implementations§
Source§impl<'r> Vfs<'r> for GitVfs<'r>
impl<'r> Vfs<'r> for GitVfs<'r>
Source§type DirWalk<'a> = GitDirWalk
where
Self: 'a,
'r: 'a
type DirWalk<'a> = GitDirWalk where Self: 'a, 'r: 'a
The type of the directory walker returned by the
walk_dir method. Read moreSource§type RFile = GitRFile<'r>
type RFile = GitRFile<'r>
The type of the file returned by the
open_read method. This allows us to
read a file in chunks, which might be required for some certain file formats. Read moreSource§fn open_read(self: Pin<&Self>, path: &Path) -> VfsResult<Self::RFile, Self>
fn open_read(self: Pin<&Self>, path: &Path) -> VfsResult<Self::RFile, Self>
Opens a file for reading, at the specified path.
Source§fn exists(self: Pin<&Self>, path: &Path) -> VfsResult<bool, Self>
fn exists(self: Pin<&Self>, path: &Path) -> VfsResult<bool, Self>
Checks if a file exists at the specified path.
Source§fn is_dir(self: Pin<&Self>, path: &Self::Path) -> VfsResult<bool, Self>
fn is_dir(self: Pin<&Self>, path: &Self::Path) -> VfsResult<bool, Self>
Checks if a directory exists at the specified path.
Auto Trait Implementations§
impl<'r> Freeze for GitVfs<'r>
impl<'r> RefUnwindSafe for GitVfs<'r>
impl<'r> !Send for GitVfs<'r>
impl<'r> !Sync for GitVfs<'r>
impl<'r> Unpin for GitVfs<'r>
impl<'r> UnwindSafe for GitVfs<'r>
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
Source§impl<T> DirStructureItem for T
impl<T> DirStructureItem for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more