pub struct Tab {
pub id: Id,
pub mode: Mode,
pub pref: Preference,
pub current: Folder,
pub parent: Option<Folder>,
pub backstack: Backstack<Url>,
pub history: History,
pub selected: Selected,
pub spot: Spot,
pub preview: Preview,
pub finder: Option<Finder>,
pub search: Option<JoinHandle<Result<()>>>,
}
Fields§
§id: Id
§mode: Mode
§pref: Preference
§current: Folder
§parent: Option<Folder>
§backstack: Backstack<Url>
§history: History
§selected: Selected
§spot: Spot
§preview: Preview
§finder: Option<Finder>
§search: Option<JoinHandle<Result<()>>>
Implementations§
Source§impl Tab
impl Tab
pub fn escape(&mut self, opt: impl Into<Opt>)
pub fn escape_find(&mut self) -> bool
pub fn escape_visual(&mut self) -> bool
pub fn escape_filter(&mut self) -> bool
pub fn escape_select(&mut self) -> bool
pub fn escape_search(&mut self) -> bool
pub fn try_escape_visual(&mut self) -> bool
Source§impl Tab
impl Tab
pub fn cwd(&self) -> &Url
pub fn hovered(&self) -> Option<&File>
pub fn hovered_rect(&self) -> Option<Rect>
pub fn hovered_rect_based(&self, pos: Position) -> Rect
pub fn selected_or_hovered(&self) -> Box<dyn Iterator<Item = &Url> + '_>
pub fn hovered_and_selected(&self) -> Box<dyn Iterator<Item = &Url> + '_>
pub fn hovered_folder(&self) -> Option<&Folder>
pub fn apply_files_attrs(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tab
impl !RefUnwindSafe for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnwindSafe for Tab
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.