pub struct ListItem {
pub content: Vec<Inline>,
pub children: Vec<Block>,
pub task: Option<TaskState>,
pub span: Span,
}Fields§
§content: Vec<Inline>§children: Vec<Block>§task: Option<TaskState>Set when the item begins with the literal [x] (Done) or [ ]
(Todo) marker. Marker bytes are consumed by the parser; content
holds the rest. Both unordered and ordered list items can carry this.
span: SpanTrait Implementations§
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