pub struct BadNumberFormat {
pub counter: String,
pub style: String,
pub format: String,
pub detail: String,
}Expand description
The error that is reported when the number template of a reference point
is not valid (id flm.numbering.bad-number-format).
A reference point can carry a number template of its own
(NumberSource::number_format),
which replaces the number format of its counter style. The author of the
document usually writes this template, as in the reference template
ref=(#{alph}) of a list. A valid number template is FLM text in which
each #{…} contains the name of a number format
(NumberFormat), as in (#{alph}) or #{Roman}..
Reported by the numbering stage NUMBER once per run for each template
and counter style, at the first reference point that carries the template.
The reference points that carry the template are numbered in their counter
style as declared.
Fields§
§counter: StringThe counter of the reference point.
style: StringThe counter style whose number format the template replaces.
format: StringThe number template, as the reference point carries it.
detail: StringThe description of the problem.
Implementations§
Trait Implementations§
Source§impl Clone for BadNumberFormat
impl Clone for BadNumberFormat
Source§impl Debug for BadNumberFormat
impl Debug for BadNumberFormat
Source§impl DiagnosticInfo for BadNumberFormat
impl DiagnosticInfo for BadNumberFormat
Source§const IDENTIFIER: &'static str = "flm.numbering.bad-number-format"
const IDENTIFIER: &'static str = "flm.numbering.bad-number-format"
<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 BadNumberFormat
impl Display for BadNumberFormat
impl Eq for BadNumberFormat
Source§impl PartialEq for BadNumberFormat
impl PartialEq for BadNumberFormat
impl StructuralPartialEq for BadNumberFormat
Auto Trait Implementations§
impl Forget for BadNumberFormat
impl Freeze for BadNumberFormat
impl Move for BadNumberFormat
impl RefUnwindSafe for BadNumberFormat
impl Send for BadNumberFormat
impl Sync for BadNumberFormat
impl Unpin for BadNumberFormat
impl UnsafeUnpin for BadNumberFormat
impl UnwindSafe for BadNumberFormat
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