pub struct UndeclaredCounter {
pub counter: String,
}Expand description
The error that is reported when a reference point is numbered with a
counter that is not declared in any feature (id
flm.numbering.undeclared-counter).
The counter of a reference point is given in its number source
(NumberSource::counter).
This error usually means that the feature in which the counter is declared
is not registered.
Reported by the numbering stage NUMBER once per run and per counter, at
the first reference point that is numbered with the counter. None of the
reference points that are numbered with this counter receives a number.
A reference point that has a number source requests a number, so a missing
counter is an error. If the constructs of a feature are numbered only in
some configurations, their reference points have no number source in the
other configurations. The math feature and the headings feature do so with
MathConfig::numbered_equations
and
HeadingsConfig::numbering.
Fields§
§counter: StringThe name of the undeclared counter.
Implementations§
Source§impl UndeclaredCounter
impl UndeclaredCounter
Sourcepub fn new(counter: impl Into<String>) -> Self
pub fn new(counter: impl Into<String>) -> Self
Creates a UndeclaredCounter condition.
Trait Implementations§
Source§impl Clone for UndeclaredCounter
impl Clone for UndeclaredCounter
Source§impl Debug for UndeclaredCounter
impl Debug for UndeclaredCounter
Source§impl DiagnosticInfo for UndeclaredCounter
impl DiagnosticInfo for UndeclaredCounter
Source§const IDENTIFIER: &'static str = "flm.numbering.undeclared-counter"
const IDENTIFIER: &'static str = "flm.numbering.undeclared-counter"
<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 UndeclaredCounter
impl Display for UndeclaredCounter
impl Eq for UndeclaredCounter
Source§impl PartialEq for UndeclaredCounter
impl PartialEq for UndeclaredCounter
impl StructuralPartialEq for UndeclaredCounter
Auto Trait Implementations§
impl Forget for UndeclaredCounter
impl Freeze for UndeclaredCounter
impl Move for UndeclaredCounter
impl RefUnwindSafe for UndeclaredCounter
impl Send for UndeclaredCounter
impl Sync for UndeclaredCounter
impl Unpin for UndeclaredCounter
impl UnsafeUnpin for UndeclaredCounter
impl UnwindSafe for UndeclaredCounter
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