[][src]Struct broot::tree::TreeLine

pub struct TreeLine {
    pub left_branchs: Box<[bool]>,
    pub depth: u16,
    pub path: PathBuf,
    pub subpath: String,
    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>,
}

a line in the representation of the file hierarchy

Fields

left_branchs: Box<[bool]>depth: u16path: PathBufsubpath: Stringname: Stringline_type: TreeLineTypehas_error: boolnb_kept_children: usizeunlisted: usizescore: i32direct_match: boolsum: Option<FileSum>metadata: Metadatagit_status: Option<LineGitStatus>

Implementations

impl TreeLine[src]

pub fn make_displayable_name(
    name: &str,
    path: &PathBuf,
    tree_line_type: &TreeLineType,
    con: &AppContext
) -> String
[src]

pub fn double_extension_from_name(name: &str) -> Option<&str>[src]

pub fn extension_from_name(name: &str) -> Option<&str>[src]

pub fn is_selectable(&self) -> bool[src]

pub fn is_dir(&self) -> bool[src]

pub fn is_file(&self) -> bool[src]

pub fn is_of(&self, selection_type: SelectionType) -> bool[src]

pub fn extension(&self) -> Option<&str>[src]

pub fn selection_type(&self) -> SelectionType[src]

pub fn as_selection(&self) -> Selection<'_>[src]

pub fn mode(&self) -> Mode[src]

pub fn mount(&self) -> Option<Mount>[src]

pub fn is_exe(&self) -> bool[src]

pub fn target(&self) -> &Path[src]

build and return the absolute targeted path: either self.path or the solved canonicalized symlink

Trait Implementations

impl Clone for TreeLine[src]

impl Debug for TreeLine[src]

impl Eq for TreeLine[src]

impl Ord for TreeLine[src]

impl PartialEq<TreeLine> for TreeLine[src]

impl PartialOrd<TreeLine> for TreeLine[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,