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§
Structs§
- Parsed
Args - 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.
- Element
Kind - 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.