pub struct App {Show 18 fields
pub comparison: DirectoryComparison,
pub mode: AppMode,
pub active_panel: usize,
pub left_list_state: ListState,
pub right_list_state: ListState,
pub left_items: Vec<FileItem>,
pub right_items: Vec<FileItem>,
pub file_diff: String,
pub filter_mode: FilterMode,
pub is_refreshing: bool,
pub refresh_progress: String,
pub refresh_percentage: f64,
pub left_scrollbar_state: ScrollbarState,
pub right_scrollbar_state: ScrollbarState,
pub viewport_height: u16,
pub toolbar_area: Rect,
pub copy_info: Option<CopyInfo>,
pub delete_info: Option<DeleteInfo>,
/* private fields */
}Fields§
§comparison: DirectoryComparison§mode: AppMode§active_panel: usize§left_list_state: ListState§right_list_state: ListState§left_items: Vec<FileItem>§right_items: Vec<FileItem>§file_diff: String§filter_mode: FilterMode§is_refreshing: bool§refresh_progress: String§refresh_percentage: f64§left_scrollbar_state: ScrollbarState§right_scrollbar_state: ScrollbarState§viewport_height: u16§toolbar_area: Rect§copy_info: Option<CopyInfo>§delete_info: Option<DeleteInfo>Implementations§
Source§impl App
impl App
pub fn new(comparison: DirectoryComparison) -> Self
pub fn update_file_lists(&mut self)
pub fn handle_mouse_click(&mut self, x: u16, y: u16)
pub fn calculate_half_page(&self) -> i32
pub fn get_selected_item(&self) -> Option<&FileItem>
pub fn can_copy(&self) -> bool
pub fn toggle_folder(&mut self)
pub fn move_selection(&mut self, delta: i32)
pub fn scroll_to_top(&mut self)
pub fn scroll_to_bottom(&mut self)
pub fn expand_all(&mut self)
pub fn collapse_all(&mut self)
pub fn start_refresh(&mut self)
pub fn check_refresh_progress(&mut self)
pub fn swap_panels(&mut self)
pub fn prepare_copy(&mut self)
pub fn execute_copy(&mut self) -> Result<()>
pub fn cancel_copy(&mut self)
pub fn can_delete(&self) -> bool
pub fn prepare_delete(&mut self)
pub fn execute_delete(&mut self) -> Result<()>
pub fn cancel_delete(&mut self)
pub fn handle_key_event(&mut self, key: KeyEvent) -> Result<bool>
pub fn handle_mouse_event(&mut self, mouse: MouseEvent)
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