pub enum ItemKind {
HardChecked,
Checked,
Unchecked,
Ordered(u64),
Unordered,
}Expand description
Represents the variant of a list or task item (checked, unchecked, etc.).
Variants§
HardChecked
A checkbox item that is marked as done using - [x].
Checked
A checkbox item that is checked, but not explicitly recognized as
HardChecked (e.g., - [?]).
Unchecked
A checkbox item that is unchecked using - [ ].
Ordered(u64)
An ordered list item (e.g., 1. item), storing the numeric index.
Unordered
An unordered list item (e.g., - item).
Trait Implementations§
impl StructuralPartialEq for ItemKind
Auto Trait Implementations§
impl Freeze for ItemKind
impl RefUnwindSafe for ItemKind
impl Send for ItemKind
impl Sync for ItemKind
impl Unpin for ItemKind
impl UnwindSafe for ItemKind
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