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]

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

impl Debug for Stage[src]

impl Default for Stage[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,