pub enum ParaKind {
Heading {
level: u8,
source: HeadingSource,
},
ListItem {
kind: ListItemKind,
level: u8,
checked: Option<bool>,
source: ListSource,
},
Body,
}Expand description
Semantic kind of a paragraph as resolved through the shared precedence chain.
This enum is deliberately exhaustive (no #[non_exhaustive]): consumers
match on it to render or project paragraphs, and a new classification kind
must force every consumer to decide its handling at compile time.
Variants§
Heading
Outline or style heading.
Fields
§
source: HeadingSourceAxis that produced the classification.
ListItem
Ordered / bullet (optionally checkable) list item.
Fields
§
kind: ListItemKindMarker family.
§
level: u8Zero-based nesting depth. The style-name fallback carries no
depth information and always reports 0.
§
source: ListSourceAxis that produced the classification.
Body
Plain body paragraph (no outline/list semantics found).
Trait Implementations§
impl Copy for ParaKind
impl Eq for ParaKind
impl StructuralPartialEq for ParaKind
Auto Trait Implementations§
impl Freeze for ParaKind
impl RefUnwindSafe for ParaKind
impl Send for ParaKind
impl Sync for ParaKind
impl Unpin for ParaKind
impl UnsafeUnpin for ParaKind
impl UnwindSafe for ParaKind
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
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
Compare self to
key and return true if they are equal.