pub enum ObservedBlock {
Paragraph,
List {
ordered: bool,
},
Table,
Code {
lang: String,
},
Blockquote,
Heading {
depth: u8,
},
ThematicBreak,
Html,
}Expand description
One observed top-level block of a section body, as reduced by the consumer’s markdown parser. Carries exactly the attributes the expression vocabulary can constrain.
Variants§
Paragraph
List
ordered: false is a bullet list.
Table
Code
lang is the fenced-code info string’s first word, empty for
none (and for indented code blocks).
Blockquote
Heading
ATX or setext heading depth (1–6).
ThematicBreak
Html
Implementations§
Trait Implementations§
Source§impl Clone for ObservedBlock
impl Clone for ObservedBlock
Source§fn clone(&self) -> ObservedBlock
fn clone(&self) -> ObservedBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObservedBlock
impl Debug for ObservedBlock
impl Eq for ObservedBlock
Source§impl PartialEq for ObservedBlock
impl PartialEq for ObservedBlock
impl StructuralPartialEq for ObservedBlock
Auto Trait Implementations§
impl Freeze for ObservedBlock
impl RefUnwindSafe for ObservedBlock
impl Send for ObservedBlock
impl Sync for ObservedBlock
impl Unpin for ObservedBlock
impl UnsafeUnpin for ObservedBlock
impl UnwindSafe for ObservedBlock
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.