[−][src]Struct broot::flat_tree::TreeLine
a line in the representation of the file hierarchy
Fields
left_branchs: Box<[bool]>
depth: u16
name: String
path: PathBuf
line_type: LineType
has_error: bool
nb_kept_children: usize
unlisted: usize
score: i32
size: 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]
fn cmp(&self, other: &TreeLine) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TreeLine> for TreeLine
[src]
impl PartialOrd<TreeLine> for TreeLine
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,