Skip to main content

GitRefs

Trait GitRefs 

Source
pub trait GitRefs {
    type Error: StdError + Send + Sync + 'static;

    // Required method
    fn reference(
        &self,
        repository: &Path,
        name: &str,
    ) -> Result<Option<String>, Self::Error>;
}
Expand description

Reference lookup.

Required Associated Types§

Source

type Error: StdError + Send + Sync + 'static

The failure of a reference lookup.

Required Methods§

Source

fn reference( &self, repository: &Path, name: &str, ) -> Result<Option<String>, Self::Error>

The commit a full reference name points at, or None when the reference does not exist.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§