Struct broot::git::LineStatusComputer
source · pub struct LineStatusComputer { /* private fields */ }
Expand description
As a git repo can’t tell whether a path has a status, this computer looks at all the statuses of the repo and build a map path->status which can then be efficiently queried
Implementations§
source§impl LineStatusComputer
impl LineStatusComputer
pub fn from(repo: Repository) -> Option<Self>
pub fn line_status(&self, path: &Path) -> Option<LineGitStatus>
pub fn is_interesting(&self, path: &Path) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for LineStatusComputer
impl Send for LineStatusComputer
impl Sync for LineStatusComputer
impl Unpin for LineStatusComputer
impl UnwindSafe for LineStatusComputer
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