#[non_exhaustive]pub struct DiscreteHeader {
pub metadata: BlockMetadata,
pub title: Title,
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§title: Title§level: u8§location: LocationTrait Implementations§
Source§impl Clone for DiscreteHeader
impl Clone for DiscreteHeader
Source§fn clone(&self) -> DiscreteHeader
fn clone(&self) -> DiscreteHeader
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 Debug for DiscreteHeader
impl Debug for DiscreteHeader
Source§impl PartialEq for DiscreteHeader
impl PartialEq for DiscreteHeader
Source§impl Serialize for DiscreteHeader
impl Serialize for DiscreteHeader
impl StructuralPartialEq for DiscreteHeader
Auto Trait Implementations§
impl Freeze for DiscreteHeader
impl RefUnwindSafe for DiscreteHeader
impl Send for DiscreteHeader
impl Sync for DiscreteHeader
impl Unpin for DiscreteHeader
impl UnwindSafe for DiscreteHeader
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