pub struct ListItem {
pub meta: NodeMeta,
pub checked: Option<bool>,
pub number: Option<u64>,
pub children: Vec<Block>,
}Expand description
A single list item, optionally a GFM task-list checkbox.
Fields§
§meta: NodeMetaNode metadata (source span).
checked: Option<bool>Task-list state: Some(true) for [x], Some(false) for [ ], None otherwise.
number: Option<u64>The number an ordered item is written with (3. => Some(3)), which
for the first item is the list’s start. None is written as the
previous item’s number plus one, or 1 for the first item; a bullet
item holds None.
children: Vec<Block>The item’s block content.
Implementations§
Trait Implementations§
impl Eq for ListItem
impl StructuralPartialEq for ListItem
Auto Trait Implementations§
impl Freeze for ListItem
impl RefUnwindSafe for ListItem
impl Send for ListItem
impl Sync for ListItem
impl Unpin for ListItem
impl UnsafeUnpin for ListItem
impl UnwindSafe for ListItem
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