Trait 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§