Struct comrak::nodes::NodeHeading
source · pub struct NodeHeading {
pub level: u8,
pub setext: bool,
}
Expand description
The metadata of a heading.
Fields§
§level: u8
The level of the header; from 1 to 6 for ATX headings, 1 or 2 for setext headings.
setext: bool
Whether the heading is setext (if not, ATX).
Trait Implementations§
source§impl Clone for NodeHeading
impl Clone for NodeHeading
source§fn clone(&self) -> NodeHeading
fn clone(&self) -> NodeHeading
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 moresource§impl Debug for NodeHeading
impl Debug for NodeHeading
source§impl Default for NodeHeading
impl Default for NodeHeading
source§fn default() -> NodeHeading
fn default() -> NodeHeading
Returns the “default value” for a type. Read more
source§impl PartialEq for NodeHeading
impl PartialEq for NodeHeading
source§fn eq(&self, other: &NodeHeading) -> bool
fn eq(&self, other: &NodeHeading) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NodeHeading
impl Eq for NodeHeading
impl StructuralEq for NodeHeading
impl StructuralPartialEq for NodeHeading
Auto Trait Implementations§
impl RefUnwindSafe for NodeHeading
impl Send for NodeHeading
impl Sync for NodeHeading
impl Unpin for NodeHeading
impl UnwindSafe for NodeHeading
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