icon
Unicode glyph indicator atom used for task status and blocking state.
struct Component
pub struct ComponentA 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
pub fn blocked() -> SelfBlocked indicator icon.
| Parameter | Type | Description |
|---|---|---|
| returns | Self | A ⊗ in the indicator.blocked style. |
Component::blocking
pub fn blocking() -> SelfBlocking indicator icon.
| Parameter | Type | Description |
|---|---|---|
| returns | Self | A ! in the indicator.blocking style. |
Component::phase
pub fn phase() -> SelfPhase header icon used by the iteration graph.
| Parameter | Type | Description |
|---|---|---|
| returns | Self | A ◆ in the iteration.graph.phase.icon style. |
Component::status
pub fn status(status: &str) -> SelfStatus 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. |