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: GitRevision, dest: &Path, cargo_config: &Config, ) -> CargoResult<GitCheckout<'_>>
pub fn to_short_id(&self, revision: &GitRevision) -> CargoResult<GitShortID>
pub fn has_ref(&self, reference: &str) -> CargoResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitDatabase
impl RefUnwindSafe for GitDatabase
impl Send for GitDatabase
impl !Sync for GitDatabase
impl Unpin for GitDatabase
impl UnsafeUnpin 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