pub struct TreeLine {Show 17 fields
pub id: TreeLineId,
pub parent_id: Option<TreeLineId>,
pub left_branches: Box<[bool]>,
pub depth: u16,
pub path: PathBuf,
pub subpath: String,
pub icon: Option<char>,
pub name: String,
pub line_type: TreeLineType,
pub has_error: bool,
pub nb_kept_children: usize,
pub unlisted: usize,
pub score: i32,
pub direct_match: bool,
pub sum: Option<FileSum>,
pub metadata: Metadata,
pub git_status: Option<LineGitStatus>,
}Expand description
a line in the representation of the file hierarchy
Fields§
§id: TreeLineId§parent_id: Option<TreeLineId>§left_branches: Box<[bool]>§depth: u16§path: PathBuf§subpath: String§icon: Option<char>§name: String§line_type: TreeLineType§has_error: bool§nb_kept_children: usize§unlisted: usize§score: i32§direct_match: bool§sum: Option<FileSum>§metadata: Metadata§git_status: Option<LineGitStatus>Implementations§
Source§impl TreeLine
impl TreeLine
pub fn double_extension_from_name(name: &str) -> Option<&str>
pub fn extension_from_name(name: &str) -> Option<&str>
pub fn is_selectable(&self) -> bool
pub fn is_dir(&self) -> bool
pub fn is_file(&self) -> bool
pub fn is_of(&self, selection_type: SelectionType) -> bool
pub fn extension(&self) -> Option<&str>
pub fn selection_type(&self) -> SelectionType
pub fn as_selection(&self) -> Selection<'_>
pub fn mode(&self) -> Mode
pub fn device_id(&self) -> DeviceId
pub fn mount(&self) -> Option<Mount>
pub fn is_exe(&self) -> bool
Sourcepub fn target(&self) -> &Path
pub fn target(&self) -> &Path
build and return the absolute targeted path: either self.path or the solved canonicalized symlink
pub fn unprune(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeLine
impl RefUnwindSafe for TreeLine
impl Send for TreeLine
impl Sync for TreeLine
impl Unpin for TreeLine
impl UnwindSafe for TreeLine
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more