pub enum Container {
ListItem {
ordered: bool,
start: u64,
ordinal: u64,
},
Quote,
}Expand description
A container a line nests inside. The ancestor path is a Vec<Container>.
Variants§
ListItem
A list item. ordered distinguishes 1. from -; start is the list’s
first number (1 by default); ordinal is this item’s 0-based index in
its list. Two adjacent lines belong to the same item iff their whole
container path (ordinals included) is equal — so a multi-paragraph item
is two lines sharing one ListItem, while the next item differs by
ordinal. (Identity is path plus contiguity: two sibling inner lists
under one outer item can produce equal first-item paths, distinguished
only by the non-adjacency of their runs.) Positional and deterministic —
no minted ids.
Quote
A block quote. Adjacent lines sharing [Quote] are one multi-paragraph
quote; two adjacent separate quotes are not distinguished (they merge on
round-trip — a documented canonicalization).
Trait Implementations§
impl Eq for Container
impl StructuralPartialEq for Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.