Trait radicle_surf::ToCommit

source ·
pub trait ToCommit {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn to_commit(self, repo: &Repository) -> Result<Commit, Self::Error>;
}
Expand description

A common trait for anything that can convert to a Commit.

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn to_commit(self, repo: &Repository) -> Result<Commit, Self::Error>

Converts to a commit in repo.

Implementors§