pub struct GitSummaryService<R> { /* private fields */ }Implementations§
Source§impl<R: GitCommandRunner> GitSummaryService<R>
impl<R: GitCommandRunner> GitSummaryService<R>
pub fn new(runner: R) -> Self
pub fn collect_commit_context( &self, repo_root: &Path, commit: &str, max_entries: usize, classify_arch_layer: fn(&str) -> &'static str, ) -> Option<GitSummaryContext>
pub fn collect_working_tree_context( &self, repo_root: &Path, max_entries: usize, classify_arch_layer: fn(&str) -> &'static str, ) -> Option<GitSummaryContext>
pub fn build_diff_preview_lines( &self, context: &GitSummaryContext, max_files: usize, ) -> Result<Vec<String>, String>
Auto Trait Implementations§
impl<R> Freeze for GitSummaryService<R>where
R: Freeze,
impl<R> RefUnwindSafe for GitSummaryService<R>where
R: RefUnwindSafe,
impl<R> Send for GitSummaryService<R>where
R: Send,
impl<R> Sync for GitSummaryService<R>where
R: Sync,
impl<R> Unpin for GitSummaryService<R>where
R: Unpin,
impl<R> UnsafeUnpin for GitSummaryService<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for GitSummaryService<R>where
R: 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