pub struct FileSystemTreeState {
pub selected_path: Option<Vec<usize>>,
pub expanded: HashSet<Vec<usize>>,
pub offset: usize,
pub filter: Option<String>,
pub filter_mode: bool,
}Fields§
§selected_path: Option<Vec<usize>>§expanded: HashSet<Vec<usize>>§offset: usize§filter: Option<String>§filter_mode: boolImplementations§
Source§impl FileSystemTreeState
impl FileSystemTreeState
pub fn new() -> FileSystemTreeState
Available on crate feature
file-system-tree only.pub fn select(&mut self, path: Vec<usize>)
Available on crate feature
file-system-tree only.pub fn clear_selection(&mut self)
Available on crate feature
file-system-tree only.pub fn is_expanded(&self, path: &[usize]) -> bool
Available on crate feature
file-system-tree only.pub fn expand(&mut self, path: Vec<usize>)
Available on crate feature
file-system-tree only.pub fn collapse(&mut self, path: Vec<usize>)
Available on crate feature
file-system-tree only.pub fn toggle_expansion(&mut self, path: Vec<usize>)
Available on crate feature
file-system-tree only.pub fn expand_all( &mut self, nodes: &[FileSystemTreeNode], current_path: &mut Vec<usize>, )
Available on crate feature
file-system-tree only.pub fn collapse_all(&mut self)
Available on crate feature
file-system-tree only.pub fn enter_filter_mode(&mut self)
Available on crate feature
file-system-tree only.pub fn exit_filter_mode(&mut self)
Available on crate feature
file-system-tree only.pub fn is_filter_mode(&self) -> bool
Available on crate feature
file-system-tree only.pub fn filter_text(&self) -> Option<&str>
Available on crate feature
file-system-tree only.pub fn set_filter(&mut self, filter: String)
Available on crate feature
file-system-tree only.pub fn push_filter(&mut self, c: char)
Available on crate feature
file-system-tree only.pub fn pop_filter(&mut self)
Available on crate feature
file-system-tree only.pub fn clear_filter(&mut self)
Available on crate feature
file-system-tree only.pub fn set_offset(&mut self, offset: usize)
Available on crate feature
file-system-tree only.pub fn offset(&self) -> usize
Available on crate feature
file-system-tree only.Trait Implementations§
Source§impl Clone for FileSystemTreeState
impl Clone for FileSystemTreeState
Source§fn clone(&self) -> FileSystemTreeState
fn clone(&self) -> FileSystemTreeState
Returns a duplicate 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 moreSource§impl Debug for FileSystemTreeState
impl Debug for FileSystemTreeState
Source§impl Default for FileSystemTreeState
impl Default for FileSystemTreeState
Source§fn default() -> FileSystemTreeState
fn default() -> FileSystemTreeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FileSystemTreeState
impl RefUnwindSafe for FileSystemTreeState
impl Send for FileSystemTreeState
impl Sync for FileSystemTreeState
impl Unpin for FileSystemTreeState
impl UnsafeUnpin for FileSystemTreeState
impl UnwindSafe for FileSystemTreeState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more