Skip to main content

Repo

Trait Repo 

Source
pub trait Repo {
    // Required methods
    fn blob(&self, oid: Oid) -> Result<Blob, Error>;
    fn file(&self, path: &Path) -> Option<Blob>;
}
Expand description

A repository of Git blobs.

Required Methods§

Source

fn blob(&self, oid: Oid) -> Result<Blob, Error>

Lookup a blob from the repo.

Source

fn file(&self, path: &Path) -> Option<Blob>

Lookup a file in the workdir.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Repo for Repository

Source§

fn blob(&self, oid: Oid) -> Result<Blob, Error>

Source§

fn file(&self, path: &Path) -> Option<Blob>

Implementors§