#[non_exhaustive]pub struct DiscreteHeader<'a> {
pub metadata: BlockMetadata<'a>,
pub title: Title<'a>,
pub level: u8,
pub location: Location,
}Expand description
A DiscreteHeader represents a discrete header in a document.
Discrete headings are useful for making headings inside of other blocks, like a sidebar.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metadata: BlockMetadata<'a>§title: Title<'a>§level: u8§location: LocationTrait Implementations§
Source§impl<'a> Clone for DiscreteHeader<'a>
impl<'a> Clone for DiscreteHeader<'a>
Source§fn clone(&self) -> DiscreteHeader<'a>
fn clone(&self) -> DiscreteHeader<'a>
Returns a duplicate 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<'a> Debug for DiscreteHeader<'a>
impl<'a> Debug for DiscreteHeader<'a>
Source§impl<'a> PartialEq for DiscreteHeader<'a>
impl<'a> PartialEq for DiscreteHeader<'a>
Source§impl Serialize for DiscreteHeader<'_>
impl Serialize for DiscreteHeader<'_>
impl<'a> StructuralPartialEq for DiscreteHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for DiscreteHeader<'a>
impl<'a> RefUnwindSafe for DiscreteHeader<'a>
impl<'a> Send for DiscreteHeader<'a>
impl<'a> Sync for DiscreteHeader<'a>
impl<'a> Unpin for DiscreteHeader<'a>
impl<'a> UnsafeUnpin for DiscreteHeader<'a>
impl<'a> UnwindSafe for DiscreteHeader<'a>
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