pub struct App {
pub root: FsNode,
pub cursor_path: Vec<usize>,
pub selected: usize,
pub scroll: usize,
pub visible_rows: usize,
pub should_quit: bool,
pub marked: Vec<PathBuf>,
pub list_area: Rect,
}Fields§
§root: FsNode§cursor_path: Vec<usize>§selected: usize§scroll: usize§visible_rows: usize§should_quit: bool§marked: Vec<PathBuf>§list_area: RectImplementations§
Source§impl App
impl App
pub fn new(root: FsNode) -> Self
pub fn current(&self) -> &FsNode
pub fn marked_total(&self) -> u64
pub fn set_visible_rows(&mut self, rows: usize)
pub fn descend(&mut self)
pub fn ascend(&mut self)
pub fn move_down(&mut self)
pub fn move_up(&mut self)
pub fn page_down(&mut self)
pub fn page_up(&mut self)
pub fn go_top(&mut self)
pub fn go_bottom(&mut self)
pub fn handle_mouse(&mut self, ev: MouseEvent)
pub fn toggle_mark(&mut self)
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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