pub trait GitLike: Sized {
type CurrentDir: AsRef<Utf8Path>;
// Required method
fn as_git(&self) -> &Git<Self::CurrentDir>;
// Provided methods
fn get_current_dir(&self) -> &Self::CurrentDir { ... }
fn command(&self) -> Command { ... }
fn remote(&self) -> GitRemote<'_, Self> { ... }
fn path(&self) -> GitPath<'_, Self> { ... }
fn worktree(&self) -> GitWorktree<'_, Self> { ... }
fn refs(&self) -> GitRefs<'_, Self> { ... }
fn status(&self) -> GitStatus<'_, Self> { ... }
fn config(&self) -> GitConfig<'_, Self> { ... }
fn branch(&self) -> GitBranch<'_, Self> { ... }
}Required Associated Types§
type CurrentDir: AsRef<Utf8Path>
Required Methods§
fn as_git(&self) -> &Git<Self::CurrentDir>
Provided Methods§
fn get_current_dir(&self) -> &Self::CurrentDir
Sourcefn worktree(&self) -> GitWorktree<'_, Self>
fn worktree(&self) -> GitWorktree<'_, Self>
Methods for dealing with Git remotes.
Sourcefn status(&self) -> GitStatus<'_, Self>
fn status(&self) -> GitStatus<'_, Self>
Methods for dealing with Git statuses and the working tree.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".