pub trait CheckoutManager {
// Required methods
fn checkout(
&self,
ref_name: &str,
opts: Option<&CheckoutOptions>,
) -> AppResult<()>;
fn checkout_files(&self, paths: &[&str]) -> AppResult<()>;
}Expand description
Checkout operations.
Required Methods§
Sourcefn checkout(
&self,
ref_name: &str,
opts: Option<&CheckoutOptions>,
) -> AppResult<()>
fn checkout( &self, ref_name: &str, opts: Option<&CheckoutOptions>, ) -> AppResult<()>
Checks out the given ref.
Sourcefn checkout_files(&self, paths: &[&str]) -> AppResult<()>
fn checkout_files(&self, paths: &[&str]) -> AppResult<()>
Checks out the provided paths from the index or HEAD.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".