pub struct ListItem {
pub inlines: Vec<Inline>,
pub blocks: Vec<ListItemBlock>,
pub span: SourceSpan,
}Expand description
One entry inside an Item::List.
blocks preserves source order between item paragraphs and nested lists;
nested lists live only there. inlines mirrors the first paragraph for
older consumers.
Fields§
§inlines: Vec<Inline>§blocks: Vec<ListItemBlock>§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