Struct broot::stage::FilteredStage
source · pub struct FilteredStage { /* private fields */ }
Implementations§
source§impl FilteredStage
impl FilteredStage
pub fn unfiltered(stage: &Stage) -> Self
pub fn filtered(stage: &Stage, pattern: InputPattern) -> Self
sourcepub fn update(&mut self, stage: &Stage) -> bool
pub fn update(&mut self, stage: &Stage) -> bool
check whether the stage has changed, and update the filtered list if necessary
sourcepub fn set_pattern(&mut self, stage: &Stage, pattern: InputPattern)
pub fn set_pattern(&mut self, stage: &Stage, pattern: InputPattern)
change the pattern, keeping the selection if possible Assumes the stage didn’t change (if it changed, we lose the selection)
pub fn len(&self) -> usize
pub fn path<'s>(&self, stage: &'s Stage, idx: usize) -> Option<&'s Path>
pub fn path_sel<'s>( &self, stage: &'s Stage, idx: usize ) -> Option<(&'s Path, bool)>
pub fn pattern(&self) -> &InputPattern
pub fn selection(&self) -> Option<usize>
pub fn has_selection(&self) -> bool
pub fn try_select_idx(&mut self, idx: usize) -> bool
pub fn selected_path<'s>(&self, stage: &'s Stage) -> Option<&'s Path>
pub fn unselect(&mut self)
sourcepub fn unstage_selection(&mut self, stage: &mut Stage) -> bool
pub fn unstage_selection(&mut self, stage: &mut Stage) -> bool
unstage the selection, if any, or return false. If possible we select the item below so that the user may easily remove a few items
pub fn move_selection(&mut self, dy: i32, cycle: bool)
Trait Implementations§
source§impl Clone for FilteredStage
impl Clone for FilteredStage
source§fn clone(&self) -> FilteredStage
fn clone(&self) -> FilteredStage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for FilteredStage
impl Send for FilteredStage
impl Sync for FilteredStage
impl Unpin for FilteredStage
impl UnwindSafe for FilteredStage
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