pub struct ListItem {
pub inlines: Vec<Inline>,
pub children: Vec<Item>,
pub span: SourceSpan,
}Expand description
One entry inside an Item::List. inlines is the item’s own
text (markers stripped, parsed with the same inline tokenizer as
paragraphs); children carries nested blocks, currently restricted
to further Item::Lists per the MVP scope.
Fields§
§inlines: Vec<Inline>§children: Vec<Item>§span: SourceSpanTrait 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