pub struct TreeLine {Show 17 fields
pub bid: BId,
pub parent_bid: Option<BId>,
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§
§bid: BId
§parent_bid: Option<BId>
§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
Trait Implementations§
Auto Trait Implementations§
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