Struct cargo::sources::git::GitDatabase
source · pub struct GitDatabase { /* private fields */ }
Expand description
GitDatabase
is a local clone of a remote repository’s database. Multiple
GitCheckouts
can be cloned from this GitDatabase
.
Implementations§
source§impl GitDatabase
impl GitDatabase
pub fn copy_to( &self, rev: Oid, dest: &Path, cargo_config: &Config, parent_remote_url: &Url ) -> CargoResult<GitCheckout<'_>>
pub fn to_short_id(&self, revision: Oid) -> CargoResult<GitShortID>
pub fn contains(&self, oid: Oid) -> bool
pub fn resolve(&self, r: &GitReference) -> CargoResult<Oid>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GitDatabase
impl Send for GitDatabase
impl !Sync for GitDatabase
impl Unpin for GitDatabase
impl UnwindSafe for GitDatabase
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more