pub struct Item {
pub line: usize,
pub raw: String,
pub text: String,
pub checked: bool,
pub reference: Option<Reference>,
}Expand description
One task list item, as it stands in the body.
Fields§
§line: usize1-based, so a log line names something a person can go and look at.
raw: StringThe line exactly as it stands, without its terminator. This is the handle: the line is found again by content on re-read, never by index, because an edit that lands mid-run moves indexes and does not move text.
text: StringThe item’s own text, after the checkbox.
checked: bool§reference: Option<Reference>Trait Implementations§
impl Eq for Item
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.