[][src]Struct liboskar::types::FileTree

pub struct FileTree {
    pub file_size: FileSize,
    // some fields omitted
}

Fields

file_size: FileSize

Methods

impl FileTree[src]

pub fn sort(
    self,
    maybe_num: Option<usize>,
    min_bytes: Option<u64>,
    dirs_only: bool,
    max_depth: Option<u8>
) -> FileTree
[src]

pub fn filtered(
    self,
    min_bytes: Option<u64>,
    dirs_only: bool,
    max_depth: Option<u8>
) -> FileTree
[src]

pub fn new() -> FileTree[src]

pub fn add(&mut self, size: FileSize)[src]

pub fn push(
    &mut self,
    path: String,
    size: FileSize,
    subtree: Option<&mut FileTree>,
    depth: u8,
    is_dir: bool
)
[src]

pub fn display_tree(&mut self, init_dir: &PathBuf)[src]

Trait Implementations

impl Default for FileTree[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> Erased for T

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

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

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.