Trait radicle_surf::Revision

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

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

Supports various ways to specify a revision used in Git.

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn object_id(&self, repo: &Repository) -> Result<Oid, Self::Error>

Returns the object id of this revision in repo.

Implementations on Foreign Types§

source§

impl Revision for &str

§

type Error = Error

source§

fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error>

source§

impl Revision for String

§

type Error = Error

source§

fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error>

source§

impl Revision for Qualified<'_>

§

type Error = Error

source§

fn object_id(&self, repo: &Repository) -> Result<Oid, Self::Error>

source§

impl Revision for RefString

§

type Error = Error

source§

fn object_id(&self, repo: &Repository) -> Result<Oid, Self::Error>

source§

impl Revision for Oid

§

type Error = Infallible

source§

fn object_id(&self, _repo: &Repository) -> Result<Oid, Self::Error>

source§

impl<R: Revision> Revision for &R

§

type Error = <R as Revision>::Error

source§

fn object_id(&self, repo: &Repository) -> Result<Oid, Self::Error>

source§

impl<R: Revision> Revision for Box<R>

§

type Error = <R as Revision>::Error

source§

fn object_id(&self, repo: &Repository) -> Result<Oid, Self::Error>

Implementors§