pub struct Stage { /* private fields */ }
Expand description
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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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
sourceimpl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for P where
R: Read + ReadEndian<P>,
P: Default,
sourcefn 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()
.
sourcefn read_from_big_endian(read: &mut R) -> Result<Self, Error>
fn read_from_big_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_big_endian()
.
sourcefn read_from_native_endian(read: &mut R) -> Result<Self, Error>
fn read_from_native_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as ReadEndian::read_from_native_endian()
.