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

source§

type Error = Error

source§

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

source§

impl Revision for String

source§

type Error = Error

source§

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

source§

impl Revision for Qualified<'_>

source§

type Error = Error

source§

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

source§

impl Revision for RefString

source§

type Error = Error

source§

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

source§

impl Revision for Oid

source§

impl<R: Revision> Revision for &R

source§

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>

source§

type Error = <R as Revision>::Error

source§

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

Implementors§