pub struct ListItem {
pub meta: NodeMeta,
pub checked: Option<bool>,
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.
children: Vec<Block>The item’s block content.
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