[][src]Struct vfs_clgit::CommitFS

pub struct CommitFS { /* fields omitted */ }

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]

Create a filesystem over a commit.

Trait Implementations

impl Debug for CommitFS[src]

impl FileSystem for CommitFS[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.