[][src]Struct clgit::RepositoryCache

pub struct RepositoryCache {
    pub repository: Repository,
    // some fields omitted
}

A git Repository + in-memory caches for Commits, Trees, and possibly Blobs

Fields

repository: Repository

The Repository this cache reads from

Implementations

impl RepositoryCache[src]

pub fn new(repository: Repository) -> Self[src]

Create a cache for a given repository

pub fn commit(&self, hash: &Hash) -> Result<Arc<Commit>>[src]

Attempt to read a Commit by it's given Hash

pub fn tree(&self, hash: &Hash) -> Result<Arc<Tree>>[src]

Attempt to read a Tree by it's given Hash

Trait Implementations

impl From<Repository> for RepositoryCache[src]

impl TryIntoSharedRepositoryCache for RepositoryCache[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.