Enum alfred::Icon [] [src]

pub enum Icon<'a> {
    Path(Cow<'a, str>),
    File(Cow<'a, str>),
    FileType(Cow<'a, str>),
}

Item icons

Variants

Path(Cow<'a, str>)

Path to an image file on disk relative to the workflow directory

File(Cow<'a, str>)

Path to a file whose icon will be used

FileType(Cow<'a, str>)

UTI for a file type to use (e.g. public.folder)

Trait Implementations

impl<'a> Clone for Icon<'a>
[src]

fn clone(&self) -> Icon<'a>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<'a> Eq for Icon<'a>
[src]

impl<'a> PartialEq for Icon<'a>
[src]

fn eq(&self, __arg_0: &Icon<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Icon<'a>) -> bool

This method tests for !=.