Struct broot::stage::Stage [−][src]
pub struct Stage { /* fields omitted */ }
a staging area: selection of several paths for later user
The structure is versionned to allow caching of derived structs (filtered list mainly). This scheme implies the stage isn’t cloned, and that it exists in only one instance
Implementations
impl Stage
[src]
impl Stage
[src]pub fn contains(&self, path: &Path) -> bool
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn add(&mut self, path: PathBuf) -> bool
[src]
return true when there’s a change
pub fn remove(&mut self, path: &Path) -> bool
[src]
return true when there’s a change
pub fn remove_idx(&mut self, idx: usize)
[src]
pub fn clear(&mut self)
[src]
pub fn paths(&self) -> &[PathBuf]
[src]
pub fn refresh(&mut self)
[src]
removes paths to non existing files
pub fn len(&self) -> usize
[src]
pub fn version(&self) -> usize
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Stage
impl RefUnwindSafe for Stage
impl UnwindSafe for Stage
impl UnwindSafe for Stage