Trait lscolors::Colorable

source ·
pub trait Colorable {
    // Required methods
    fn path(&self) -> PathBuf;
    fn file_name(&self) -> OsString;
    fn file_type(&self) -> Option<FileType>;
    fn metadata(&self) -> Option<Metadata>;
}
Expand description

A colorable file path.

Required Methods§

source

fn path(&self) -> PathBuf

Get the full path to this file.

source

fn file_name(&self) -> OsString

Get the name of this file.

source

fn file_type(&self) -> Option<FileType>

Try to get the type of this file.

source

fn metadata(&self) -> Option<Metadata>

Try to get the metadata for this file.

Implementations on Foreign Types§

source§

impl Colorable for DirEntry

Implementors§