pub struct Stage { /* private fields */ }
Expand description
a staging area: selection of several paths for later user
The structure is versioned 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§
source§impl Stage
impl Stage
pub fn contains(&self, path: &Path) -> bool
pub fn is_empty(&self) -> bool
pub fn remove_idx(&mut self, idx: usize)
pub fn clear(&mut self)
pub fn paths(&self) -> &[PathBuf]
pub fn len(&self) -> usize
pub fn version(&self) -> usize
pub fn compute_sum(&self, dam: &Dam, con: &AppContext) -> Option<FileSum>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnwindSafe for Stage
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.