pub struct ExplorerState { /* private fields */ }Implementations§
Source§impl ExplorerState
impl ExplorerState
pub fn new(title: &str, items: Vec<VaultEntry>, symbols: &Symbols) -> Self
pub fn set_active(&mut self, active: bool)
pub fn with_entries( &mut self, entries: Vec<VaultEntry>, select: Option<PathBuf>, )
pub fn hide_pane(&mut self)
pub fn expand_pane(&mut self)
pub fn toggle(&mut self)
pub fn flatten_with_sort(&mut self, sort: Sort)
pub fn flatten_with_items(&mut self, items: &[Item])
pub fn sort(&mut self)
pub fn update_offset_mut(&mut self, window_height: usize) -> &Self
pub fn select(&mut self)
pub fn current_item(&self) -> Option<&Item>
pub fn selected_path(&self) -> Option<PathBuf>
pub fn is_open(&self) -> bool
pub fn next(&mut self, amount: usize)
pub fn previous(&mut self, amount: usize)
Trait Implementations§
Source§impl Clone for ExplorerState
impl Clone for ExplorerState
Source§fn clone(&self) -> ExplorerState
fn clone(&self) -> ExplorerState
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 ExplorerState
impl Debug for ExplorerState
Source§impl Default for ExplorerState
impl Default for ExplorerState
Source§fn default() -> ExplorerState
fn default() -> ExplorerState
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExplorerState
impl PartialEq for ExplorerState
impl StructuralPartialEq for ExplorerState
Auto Trait Implementations§
impl Freeze for ExplorerState
impl RefUnwindSafe for ExplorerState
impl Send for ExplorerState
impl Sync for ExplorerState
impl Unpin for ExplorerState
impl UnsafeUnpin for ExplorerState
impl UnwindSafe for ExplorerState
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> 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