pub struct HtmlHeading {
pub level: u8,
pub text: String,
}Expand description
A lightweight heading extracted from h1 through h6.
Fields§
§level: u8§text: StringTrait Implementations§
Source§impl Clone for HtmlHeading
impl Clone for HtmlHeading
Source§fn clone(&self) -> HtmlHeading
fn clone(&self) -> HtmlHeading
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 HtmlHeading
impl Debug for HtmlHeading
Source§impl PartialEq for HtmlHeading
impl PartialEq for HtmlHeading
Source§fn eq(&self, other: &HtmlHeading) -> bool
fn eq(&self, other: &HtmlHeading) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HtmlHeading
impl StructuralPartialEq for HtmlHeading
Auto Trait Implementations§
impl Freeze for HtmlHeading
impl RefUnwindSafe for HtmlHeading
impl Send for HtmlHeading
impl Sync for HtmlHeading
impl Unpin for HtmlHeading
impl UnsafeUnpin for HtmlHeading
impl UnwindSafe for HtmlHeading
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