[][src]Struct broot::flat_tree::TreeLine

pub struct TreeLine {
    pub left_branchs: Box<[bool]>,
    pub depth: u16,
    pub name: String,
    pub path: PathBuf,
    pub line_type: LineType,
    pub has_error: bool,
    pub nb_kept_children: usize,
    pub unlisted: usize,
    pub score: i32,
    pub size: Option<Size>,
    pub metadata: Metadata,
}

a line in the representation of the file hierarchy

Fields

left_branchs: Box<[bool]>depth: u16name: Stringpath: PathBufline_type: LineTypehas_error: boolnb_kept_children: usizeunlisted: usizescore: i32size: Option<Size>metadata: Metadata

Methods

impl TreeLine[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 is_exe(&self) -> bool[src]

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

build and return the absolute targeted path: either self.path or the solved canonicalized symlink (the path may be invalid if the symlink is)

pub fn modified(&self) -> Option<SystemTime>[src]

return the last modification date, if it makes sense

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<T> From<T> for T[src]

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

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.