Skip to main content

RepositoryExt

Trait RepositoryExt 

Source
pub trait RepositoryExt {
    // Required methods
    fn action(&self, state: RepositoryState) -> Option<&'static str>;
    fn branch_name(&self) -> Result<String, Error>;
    fn branch_status(&self) -> Result<BranchStatus, Error>;
    fn rebase_head_name(
        &self,
        state: RepositoryState,
    ) -> Result<Option<String>, Error>;
    fn unborn_branch_name(&self) -> Result<Option<String>, Error>;
    fn tag_name(&self) -> Result<Option<String>, Error>;
    fn to_short_oid(&self, oid: Oid) -> Result<Option<String>, Error>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RepositoryExt for Repository

Implementors§