[−][src]Struct vfs_clgit::CommitFS
A read-only filesystem for a single git Commit
Example
let commitfs = CommitFS::new(".", "dcb6ca6b041186b6aeb17b9bce48ce2ae112b7dc").unwrap(); let commitfs = VfsPath::new(commitfs); // ...
Implementations
impl CommitFS
[src]
pub fn new(
repository: impl TryIntoSharedRepositoryCache,
commit: impl TryIntoCommitHash
) -> Result<Self>
[src]
repository: impl TryIntoSharedRepositoryCache,
commit: impl TryIntoCommitHash
) -> Result<Self>
Create a filesystem over a commit.
Trait Implementations
impl Debug for CommitFS
[src]
impl FileSystem for CommitFS
[src]
fn read_dir(&self, path: &str) -> VfsResult<Box<dyn Iterator<Item = String>>>
[src]
fn open_file(&self, path: &str) -> VfsResult<Box<dyn SeekAndRead>>
[src]
fn metadata(&self, path: &str) -> VfsResult<VfsMetadata>
[src]
fn exists(&self, path: &str) -> bool
[src]
fn create_dir(&self, _path: &str) -> VfsResult<()>
[src]
fn create_file(&self, _path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn append_file(&self, _path: &str) -> VfsResult<Box<dyn Write>>
[src]
fn remove_file(&self, _path: &str) -> VfsResult<()>
[src]
fn remove_dir(&self, _path: &str) -> VfsResult<()>
[src]
fn copy_file(&self, _src: &str, _dst: &str) -> VfsResult<()>
[src]
fn move_file(&self, _src: &str, _dst: &str) -> VfsResult<()>
[src]
fn move_dir(&self, _src: &str, _dst: &str) -> VfsResult<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommitFS
impl Send for CommitFS
impl Sync for CommitFS
impl Unpin for CommitFS
impl UnwindSafe for CommitFS
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,