pub enum ElementKind {
Heading,
Paragraph,
List,
Table,
SrcBlock,
ExampleBlock,
Quote,
HorizontalRule,
}Expand description
The structural kind of a projected element, stored alongside its index in the
PositionMap so pull can report what a comment is anchored to.
Variants§
Heading
An org heading (*…), projected as a HEADING_n named style.
Paragraph
A body paragraph.
List
An ordered, unordered, or checkbox list.
Table
A table.
SrcBlock
A #+begin_src block, rendered monospace.
ExampleBlock
A #+begin_example block, rendered monospace.
Quote
A block quote.
HorizontalRule
A horizontal rule.
Implementations§
Source§impl ElementKind
impl ElementKind
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§fn clone(&self) -> ElementKind
fn clone(&self) -> ElementKind
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 moreimpl Copy for ElementKind
Source§impl Debug for ElementKind
impl Debug for ElementKind
impl Eq for ElementKind
Source§impl PartialEq for ElementKind
impl PartialEq for ElementKind
impl StructuralPartialEq for ElementKind
Auto Trait Implementations§
impl Freeze for ElementKind
impl RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnsafeUnpin for ElementKind
impl UnwindSafe for ElementKind
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.