TrashExt

Trait TrashExt 

Source
pub trait TrashExt {
    // Provided methods
    fn is_empty() -> bool { ... }
    fn entries() -> usize { ... }
    fn folders() -> Result<HashSet<PathBuf>, Error> { ... }
    fn scan(_sizes: IconSizes) -> Vec<Item> { ... }
    fn scan_search<F: Fn(SearchItem) -> bool + Sync>(
        _callback: F,
        _regex: &Regex,
    ) { ... }
    fn icon(icon_size: u16) -> Handle { ... }
    fn icon_symbolic(icon_size: u16) -> Handle { ... }
}

Provided Methods§

Source

fn is_empty() -> bool

Source

fn entries() -> usize

Source

fn folders() -> Result<HashSet<PathBuf>, Error>

Source

fn scan(_sizes: IconSizes) -> Vec<Item>

Source

fn icon(icon_size: u16) -> Handle

Source

fn icon_symbolic(icon_size: u16) -> Handle

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl TrashExt for Trash

Available on Windows, or Unix and non-macOS and non-iOS and non-Android only.