pub enum Item {
Value(Prefix, String),
Task(Prefix, Option<bool>, String),
}Expand description
Represents an inference data item parsed from AIM files.
Items can be either simple values or tasks with status indicators. Each item may have an optional prefix style (ordered, unordered, or none) and for tasks, an optional status indicating completion state.
Variants§
Value(Prefix, String)
A simple value item without task status.
Contains a prefix style and the item’s text content.
§Examples
1. Ordered value
- Unordered value
Simple valueTask(Prefix, Option<bool>, String)
A task item with optional completion status.
Contains a prefix style, optional status (Some(true) = completed, Some(false) = failed, None = pending), and the task text.
§Examples
[x] Completed task
[-] Failed task
[ ] Pending task
1. [x] Ordered completed taskTrait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more