[][src]Enum lscolors::Indicator

pub enum Indicator {
    Normal,
    RegularFile,
    Directory,
    SymbolicLink,
    FIFO,
    Socket,
    Door,
    BlockDevice,
    CharacterDevice,
    OrphanedSymbolicLink,
    Setuid,
    Setgid,
    Sticky,
    OtherWritable,
    StickyAndOtherWritable,
    ExecutableFile,
    MissingFile,
    Capabilities,
    MultipleHardLinks,
    LeftCode,
    RightCode,
    EndCode,
    Reset,
    ClearLine,
}

Variants

Normal

no: Normal (non-filename) text

RegularFile

fi: Regular file

Directory

di: Directory

ln: Symbolic link

FIFO

pi: Named pipe or FIFO

Socket

so: Socket

Door

do: Door (IPC connection to another program)

BlockDevice

bd: Block-oriented device

CharacterDevice

cd: Character-oriented device

or: A broken symbolic link

Setuid

su: A file that is setuid (u+s)

Setgid

sg: A file that is setgid (g+s)

Sticky

st: A directory that is sticky and other-writable (+t, o+w)

OtherWritable

ow: A directory that is not sticky and other-writeable (o+w)

StickyAndOtherWritable

tw: A directory that is sticky and other-writable (+t, o+w)

ExecutableFile

ex: Executable file

MissingFile

mi: Missing file

Capabilities

ca: File with capabilities set

mh: File with multiple hard links

LeftCode

lc: Code that is printed before the color sequence

RightCode

rc: Code that is printed after the color sequence

EndCode

ec: End code

Reset

rs: Code to reset to ordinary colors

ClearLine

cl: Code to clear to the end of the line

Methods

impl Indicator[src]

pub fn from(indicator: &str) -> Option<Indicator>[src]

Trait Implementations

impl Clone for Indicator[src]

impl Copy for Indicator[src]

impl Debug for Indicator[src]

impl Eq for Indicator[src]

impl Hash for Indicator[src]

impl PartialEq<Indicator> for Indicator[src]

impl StructuralEq for Indicator[src]

impl StructuralPartialEq for Indicator[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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.