pub struct UndeclaredSubLevel {
pub counter: String,
pub style: String,
pub level: usize,
}Expand description
The error that is reported when the number of a reference point has a
sub-number that its counter style cannot write (id
flm.numbering.undeclared-sub-level).
A counter value is a number with optional sub-numbers, as in 3b. A
counter style declares one sub-level for each sub-number that it can write
(CounterStyleDecl::sub_levels). The
number of a reference point has a sub-number at a sub-level in two cases:
the reference point advances this sub-level
(NumberSource::advance),
or an earlier reference point of the same counter, in another counter
style, left a sub-number at this sub-level in the counter value.
Reported by the numbering stage NUMBER at every such reference point.
The reference point receives no number, and the counter keeps the value
that it had before the reference point, so that the numbers of the later
reference points do not change.
Fields§
§counter: StringThe counter of the reference point.
style: StringThe name of the counter style of the reference point.
level: usizeThe sub-level that the counter style does not declare, counted from 0 for the first sub-number.
Implementations§
Trait Implementations§
Source§impl Clone for UndeclaredSubLevel
impl Clone for UndeclaredSubLevel
Source§impl Debug for UndeclaredSubLevel
impl Debug for UndeclaredSubLevel
Source§impl DiagnosticInfo for UndeclaredSubLevel
impl DiagnosticInfo for UndeclaredSubLevel
Source§const IDENTIFIER: &'static str = "flm.numbering.undeclared-sub-level"
const IDENTIFIER: &'static str = "flm.numbering.undeclared-sub-level"
<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 UndeclaredSubLevel
impl Display for UndeclaredSubLevel
impl Eq for UndeclaredSubLevel
Source§impl PartialEq for UndeclaredSubLevel
impl PartialEq for UndeclaredSubLevel
impl StructuralPartialEq for UndeclaredSubLevel
Auto Trait Implementations§
impl Forget for UndeclaredSubLevel
impl Freeze for UndeclaredSubLevel
impl Move for UndeclaredSubLevel
impl RefUnwindSafe for UndeclaredSubLevel
impl Send for UndeclaredSubLevel
impl Sync for UndeclaredSubLevel
impl Unpin for UndeclaredSubLevel
impl UnsafeUnpin for UndeclaredSubLevel
impl UnwindSafe for UndeclaredSubLevel
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