UserDirs

Trait UserDirs 

Source
pub trait UserDirs: Sized {
    // Required methods
    fn new() -> Result<Self, Error>;
    fn home_dir(&self) -> &Path;
    fn data_dir(&self) -> &Path;
    fn cache_dir(&self) -> &Path;
}

Required Methods§

Source

fn new() -> Result<Self, Error>

Source

fn home_dir(&self) -> &Path

Source

fn data_dir(&self) -> &Path

Source

fn cache_dir(&self) -> &Path

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§