Struct comrak::adapters::HeadingMeta
source · pub struct HeadingMeta {
pub level: u8,
pub content: String,
}
Expand description
The struct passed to the HeadingAdapter
for custom heading implementations.
Fields§
§level: u8
The level of the heading; from 1 to 6 for ATX headings, 1 or 2 for setext headings.
content: String
The content of the heading as a “flattened” string—flattened in the sense that any
<strong>
or other tags are removed. In the Markdown heading ## This is **bold**
, for
example, the would be the string "This is bold"
.
Trait Implementations§
source§impl Clone for HeadingMeta
impl Clone for HeadingMeta
source§fn clone(&self) -> HeadingMeta
fn clone(&self) -> HeadingMeta
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for HeadingMeta
impl Send for HeadingMeta
impl Sync for HeadingMeta
impl Unpin for HeadingMeta
impl UnwindSafe for HeadingMeta
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