pub struct GitRepository<CE: CommandExecutor = RealCommandExecutor> { /* private fields */ }Expand description
Git repository interface with dependency injection for testability
Implementations§
Source§impl<CE: CommandExecutor> GitRepository<CE>
impl<CE: CommandExecutor> GitRepository<CE>
Sourcepub fn with_executor(cmd_executor: CE) -> Self
pub fn with_executor(cmd_executor: CE) -> Self
Create a GitRepository with a custom command executor (for testing)
Trait Implementations§
Source§impl Default for GitRepository<RealCommandExecutor>
impl Default for GitRepository<RealCommandExecutor>
Auto Trait Implementations§
impl<CE> Freeze for GitRepository<CE>where
CE: Freeze,
impl<CE> RefUnwindSafe for GitRepository<CE>where
CE: RefUnwindSafe,
impl<CE> Send for GitRepository<CE>where
CE: Send,
impl<CE> Sync for GitRepository<CE>where
CE: Sync,
impl<CE> Unpin for GitRepository<CE>where
CE: Unpin,
impl<CE> UnwindSafe for GitRepository<CE>where
CE: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more