pub struct App {Show 31 fields
pub query: String,
pub all_entries: Vec<TryEntry>,
pub filtered_entries: Vec<TryEntry>,
pub selected_index: usize,
pub should_quit: bool,
pub final_selection: SelectionResult,
pub mode: AppMode,
pub status_message: Option<String>,
pub base_path: PathBuf,
pub theme: Theme,
pub editor_cmd: Option<String>,
pub wants_editor: bool,
pub apply_date_prefix: Option<bool>,
pub transparent_background: bool,
pub show_new_option: bool,
pub show_disk: bool,
pub show_preview: bool,
pub show_legend: bool,
pub right_panel_visible: bool,
pub right_panel_width: u16,
pub tries_dirs: Vec<PathBuf>,
pub active_tab: usize,
pub available_themes: Vec<Theme>,
pub theme_list_state: ListState,
pub original_theme: Option<Theme>,
pub original_transparent_background: Option<bool>,
pub config_path: Option<PathBuf>,
pub config_location_state: ListState,
pub cached_free_space_mb: Option<u64>,
pub folder_size_mb: Arc<AtomicU64>,
pub rename_input: String,
/* private fields */
}Fields§
§query: String§all_entries: Vec<TryEntry>§filtered_entries: Vec<TryEntry>§selected_index: usize§should_quit: bool§final_selection: SelectionResult§mode: AppMode§status_message: Option<String>§base_path: PathBuf§theme: Theme§editor_cmd: Option<String>§wants_editor: bool§apply_date_prefix: Option<bool>§transparent_background: bool§show_new_option: bool§show_disk: bool§show_preview: bool§show_legend: bool§right_panel_visible: bool§right_panel_width: u16§tries_dirs: Vec<PathBuf>§active_tab: usize§available_themes: Vec<Theme>§theme_list_state: ListState§original_theme: Option<Theme>§original_transparent_background: Option<bool>§config_path: Option<PathBuf>§config_location_state: ListState§cached_free_space_mb: Option<u64>§folder_size_mb: Arc<AtomicU64>§rename_input: StringImplementations§
Source§impl App
impl App
pub fn new( path: PathBuf, theme: Theme, editor_cmd: Option<String>, config_path: Option<PathBuf>, apply_date_prefix: Option<bool>, transparent_background: bool, query: Option<String>, tries_dirs: Vec<PathBuf>, active_tab: usize, ) -> Self
pub fn switch_tab(&mut self, new_tab: usize)
pub fn has_exact_match(&self) -> bool
pub fn update_search(&mut self)
pub fn delete_selected(&mut self)
pub fn rename_selected(&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