pub struct NavState { /* private fields */ }Implementations§
pub fn new(path: PathBuf) -> Self
pub fn current_dir(&self) -> &Path
pub fn entries(&self) -> &[FileEntry]
pub fn markers(&self) -> &HashSet<PathBuf>
pub fn filter(&self) -> &str
pub fn selected_idx(&self) -> usize
pub fn request_id(&self) -> u64
pub fn selected_entry(&self) -> Option<&FileEntry>
pub fn prepare_new_request(&mut self) -> u64
pub fn move_up(&mut self) -> bool
pub fn move_down(&mut self) -> bool
pub fn save_position(&mut self)
pub fn get_position(&self) -> &HashMap<PathBuf, usize>
pub fn set_path(&mut self, path: PathBuf)
pub fn update_from_worker( &mut self, path: PathBuf, entries: Vec<FileEntry>, focus: Option<OsString>, )
pub fn toggle_marker(&mut self)
pub fn clear_markers(&mut self)
pub fn get_action_targets(&self) -> HashSet<PathBuf>
pub fn filtered_entries(&self) -> Vec<&FileEntry>
pub fn shown_entries(&self) -> Box<dyn Iterator<Item = &FileEntry> + '_>
pub fn shown_entries_len(&self) -> usize
pub fn selected_shown_entry(&self) -> Option<&FileEntry>
pub fn set_filter(&mut self, filter: String)
pub fn clear_filters(&mut self)
Auto Trait Implementations§
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> 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