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
sourceimpl 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
sourceimpl Serialize for GitDatabase
impl Serialize for GitDatabase
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more