#[non_exhaustive]pub struct CalloutListItem<'a> {
pub callout: CalloutRef,
pub principal: Vec<InlineNode<'a>>,
pub blocks: Vec<Block<'a>>,
pub location: Location,
}Expand description
A CalloutListItem represents an item in a callout list.
Unlike ListItem, callout list items have a structured CalloutRef that
preserves whether the original marker was explicit (<1>) or auto-numbered (<.>).
§Example
<1> First explanation
<.> Auto-numbered explanationFields (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.callout: CalloutRefThe callout reference (explicit or auto-numbered).
principal: Vec<InlineNode<'a>>Principal text - inline content that appears after the callout marker.
blocks: Vec<Block<'a>>Attached blocks - blocks attached via continuation (though rarely used for callouts).
location: LocationSource location of this item.
Trait Implementations§
Source§impl<'a> Clone for CalloutListItem<'a>
impl<'a> Clone for CalloutListItem<'a>
Source§fn clone(&self) -> CalloutListItem<'a>
fn clone(&self) -> CalloutListItem<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CalloutListItem<'a>
impl<'a> Debug for CalloutListItem<'a>
Source§impl<'a> PartialEq for CalloutListItem<'a>
impl<'a> PartialEq for CalloutListItem<'a>
Source§impl Serialize for CalloutListItem<'_>
impl Serialize for CalloutListItem<'_>
impl<'a> StructuralPartialEq for CalloutListItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for CalloutListItem<'a>
impl<'a> RefUnwindSafe for CalloutListItem<'a>
impl<'a> Send for CalloutListItem<'a>
impl<'a> Sync for CalloutListItem<'a>
impl<'a> Unpin for CalloutListItem<'a>
impl<'a> UnsafeUnpin for CalloutListItem<'a>
impl<'a> UnwindSafe for CalloutListItem<'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