Struct broot::tree::TreeLine [−][src]
a line in the representation of the file hierarchy
Fields
left_branchs: Box<[bool]>
depth: u16
path: PathBuf
subpath: String
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
impl TreeLine
[src]
pub fn make_displayable_name(
name: &str,
path: &PathBuf,
tree_line_type: &TreeLineType,
con: &AppContext
) -> String
[src]
name: &str,
path: &PathBuf,
tree_line_type: &TreeLineType,
con: &AppContext
) -> String
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]
fn cmp(&self, other: &TreeLine) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<TreeLine> for TreeLine
[src]
fn eq(&self, other: &TreeLine) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,