icon

Unicode glyph indicator atom used for task status and blocking state.

struct Component

source

pub struct Component

A unicode glyph indicator with a style.

Field Type Description
ch char Single glyph to show.
style Style Theme style painted over the glyph.

Implements Display.

Component::blocked

source

pub fn blocked() -> Self

Blocked indicator icon.

Parameter Type Description
returns Self A ⊗ in the indicator.blocked style.

Component::blocking

source

pub fn blocking() -> Self

Blocking indicator icon.

Parameter Type Description
returns Self A ! in the indicator.blocking style.

Component::phase

source

pub fn phase() -> Self

Phase header icon used by the iteration graph.

Parameter Type Description
returns Self A ◆ in the iteration.graph.phase.icon style.

Component::status

source

pub fn status(status: &str) -> Self

Status icon for the given status string.

Parameter Type Description
status &str a task status: open, in-progress, done or cancelled
returns Self ○, ◐, ● or ⊘ in the matching task.list.icon.* style; an unknown status gets the open icon.