Skip to main content

Module elements

Module elements 

Source
Expand description

Element type system.

Element is an enum with one variant per known element type. split_args parses "work, status: done" into tags + attrs, mirroring Ruby’s Element.split_args.

Re-exports§

pub use task::TaskData;
pub use note::NoteData;
pub use log_elem::LogData;
pub use reminder::ReminderData;
pub use mps_group::MpsGroupData;
pub use character::CharacterData;

Modules§

character
log_elem
mps_group
note
reminder
task

Structs§

ParsedArgs
Parsed args from a raw args string like “work, release, status: done”. Parts with ‘:’ become attrs; bare words become tags.

Enums§

Element
All element types the parser can produce. Using an enum (not trait objects): exhaustive matching, no heap allocation per element, and pattern matching is idiomatic for the display/filter/export branches.
ElementKind
Discriminant for filtering without matching the full variant.

Functions§

split_args
Split “work, release, status: done” into tags + attrs. Mirrors Ruby’s Element.split_args exactly.