pub struct Catalog {
pub rows: Vec<CatalogRow>,
pub selected: Option<Scope>,
/* private fields */
}Fields§
§rows: Vec<CatalogRow>§selected: Option<Scope>The selected scope stays listed even without Runs.
Implementations§
Source§impl Catalog
impl Catalog
pub fn initial(&mut self, path: Option<&Path>) -> Scope
Sourcepub fn update(&mut self, runs: &[CatalogRun], initial: Option<&Path>)
pub fn update(&mut self, runs: &[CatalogRun], initial: Option<&Path>)
Old-path discovery stays cached between resets, including database-only refreshes.
Sourcepub fn rebuild(&mut self)
pub fn rebuild(&mut self)
Navigation/fold changes reuse the last accepted database facts, not a catalog query.
Sourcepub fn toggle(&mut self, repository: &Repository)
pub fn toggle(&mut self, repository: &Repository)
Show or hide a repository’s worktrees without Runs; applied on the next update.
Sourcepub fn label(&self, scope: &Scope) -> String
pub fn label(&self, scope: &Scope) -> String
The name the breadcrumb shows for scope: its row’s label, else its folder name.
pub fn paths(&self, scope: &Scope) -> Option<Vec<PathBuf>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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