pub struct FileTree { /* private fields */ }
Expand description
wraps FileTreeItems
as a datastore and adds selection functionality
Implementations§
Source§impl FileTree
impl FileTree
Sourcepub fn collapse_but_root(&mut self)
pub fn collapse_but_root(&mut self)
Sourcepub fn iterate(
&self,
start_index_visual: usize,
max_amount: usize,
) -> TreeIterator<'_>
pub fn iterate( &self, start_index_visual: usize, max_amount: usize, ) -> TreeIterator<'_>
iterates visible elements starting from start_index_visual
Sourcepub const fn visual_selection(&self) -> Option<&VisualSelection>
pub const fn visual_selection(&self) -> Option<&VisualSelection>
Sourcepub fn selected_file(&self) -> Option<&TreeItemInfo>
pub fn selected_file(&self) -> Option<&TreeItemInfo>
Sourcepub fn collapse_recursive(&mut self)
pub fn collapse_recursive(&mut self)
Sourcepub fn expand_recursive(&mut self)
pub fn expand_recursive(&mut self)
Sourcepub fn move_selection(&mut self, dir: MoveSelection) -> bool
pub fn move_selection(&mut self, dir: MoveSelection) -> bool
pub fn select_file(&mut self, path: &Path) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileTree
impl RefUnwindSafe for FileTree
impl Send for FileTree
impl Sync for FileTree
impl Unpin for FileTree
impl UnwindSafe for FileTree
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