#[non_exhaustive]pub struct ListItem<'a> {
pub level: u8,
pub marker: &'a str,
pub checked: Option<ListItemCheckedStatus>,
pub principal: Vec<InlineNode<'a>>,
pub blocks: Vec<Block<'a>>,
pub location: Location,
}Expand description
A ListItem represents a list item in a document.
List items have principal text (inline content immediately after the marker) and
optionally attached blocks (via continuation or nesting). This matches Asciidoctor’s
AST structure where principal text renders as bare <p> and attached blocks render
with their full wrapper divs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.level: u8§marker: &'a str§checked: Option<ListItemCheckedStatus>§principal: Vec<InlineNode<'a>>Principal text - inline content that appears immediately after the list marker
blocks: Vec<Block<'a>>Attached blocks - blocks attached via continuation (+) or nesting
location: LocationTrait Implementations§
impl<'a> StructuralPartialEq for ListItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for ListItem<'a>
impl<'a> RefUnwindSafe for ListItem<'a>
impl<'a> Send for ListItem<'a>
impl<'a> Sync for ListItem<'a>
impl<'a> Unpin for ListItem<'a>
impl<'a> UnsafeUnpin for ListItem<'a>
impl<'a> UnwindSafe for ListItem<'a>
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