Skip to main content

CheckoutManager

Trait CheckoutManager 

Source
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§

Source

fn checkout( &self, ref_name: &str, opts: Option<&CheckoutOptions>, ) -> AppResult<()>

Checks out the given ref.

Source

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".

Implementors§