pub struct HeadingAboveRoot {
pub level: u8,
pub root: u8,
}Expand description
Condition flm.pres.heading-above-root: a heading’s level is less than
the render’s root heading level (the root_heading_level render option),
so the heading is above the first-level heading the render writes and has
no depth below it (heading_depth).
Both the HTML backend and the text backend report this one condition, for
every block heading they write; on HTML it is reported regardless of the
tag the render options map the heading’s kind to
(HtmlRenderOptions::heading_tags).
Recovery: the heading is written at the root’s level, as a first-level
heading — on the page, a heading whose kind is mapped keeps its mapped tag
— and on the page its attribute data-flm-level still says its own level.
Fields§
§level: u8The heading’s level.
root: u8The render’s root heading level.
Implementations§
Trait Implementations§
Source§impl Clone for HeadingAboveRoot
impl Clone for HeadingAboveRoot
Source§impl Debug for HeadingAboveRoot
impl Debug for HeadingAboveRoot
Source§impl DiagnosticInfo for HeadingAboveRoot
impl DiagnosticInfo for HeadingAboveRoot
Source§const IDENTIFIER: &'static str = "flm.pres.heading-above-root"
const IDENTIFIER: &'static str = "flm.pres.heading-above-root"
<crate-or-lang>.<area>.<condition>. Read moreSource§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
Source§impl Display for HeadingAboveRoot
impl Display for HeadingAboveRoot
impl Eq for HeadingAboveRoot
Source§impl PartialEq for HeadingAboveRoot
impl PartialEq for HeadingAboveRoot
impl StructuralPartialEq for HeadingAboveRoot
Auto Trait Implementations§
impl Forget for HeadingAboveRoot
impl Freeze for HeadingAboveRoot
impl Move for HeadingAboveRoot
impl RefUnwindSafe for HeadingAboveRoot
impl Send for HeadingAboveRoot
impl Sync for HeadingAboveRoot
impl Unpin for HeadingAboveRoot
impl UnsafeUnpin for HeadingAboveRoot
impl UnwindSafe for HeadingAboveRoot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
impl<T> DiagnosticData for Twhere
T: DiagnosticInfo,
Source§fn identifier(&self) -> &str
fn identifier(&self) -> &str
DiagnosticInfo::identifier — for every
ordinary condition, the IDENTIFIER const).Source§fn serializable_data(&self) -> DiagnosticValue
fn serializable_data(&self) -> DiagnosticValue
DiagnosticInfo::serializable_data).Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more