pub struct BadWithinJoiner {
pub counter: String,
pub joiner: String,
pub detail: String,
}Expand description
The error that is reported when the within value that the numbering
options give a counter cannot be used (id
flm.numbering.bad-within-joiner).
The within value of an entry of the numbering options
(CounterOptions::within) gives the parent
counters and the within-joiner of the counter (Within).
The value cannot be used in the following cases:
- Its joining text or its within template is not valid FLM.
- Its within template refers to a counter that is not declared, or
contains a key in brackets other than
bareand the names of the number formats. A valid within template refers to declared counters or to the parent that applies, as in#{flm.headings.section}.or#[Roman]{_parent}.. - It selects a registered within-joiner by name, and this within-joiner returns an error when it is compiled.
- It gives no parent counter: an empty list of parent counters, or a parent set that contains no counter.
Reported by the numbering stage NUMBER when it applies the numbering
options, before it reads any reference point. The within value is
ignored, and the counter is numbered as its declaration specifies. The
initial value of the entry still applies.
Fields§
§counter: StringThe counter of the entry.
joiner: StringThe within-joiner of the within value: the joining text, the text of
the within template, or the name of a registered within-joiner. The
text is empty for the form that writes no ancestor
(WithinJoinerSpec::Bare).
detail: StringThe description of the problem.
Implementations§
Trait Implementations§
Source§impl Clone for BadWithinJoiner
impl Clone for BadWithinJoiner
Source§impl Debug for BadWithinJoiner
impl Debug for BadWithinJoiner
Source§impl DiagnosticInfo for BadWithinJoiner
impl DiagnosticInfo for BadWithinJoiner
Source§const IDENTIFIER: &'static str = "flm.numbering.bad-within-joiner"
const IDENTIFIER: &'static str = "flm.numbering.bad-within-joiner"
<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 BadWithinJoiner
impl Display for BadWithinJoiner
impl Eq for BadWithinJoiner
Source§impl PartialEq for BadWithinJoiner
impl PartialEq for BadWithinJoiner
impl StructuralPartialEq for BadWithinJoiner
Auto Trait Implementations§
impl Forget for BadWithinJoiner
impl Freeze for BadWithinJoiner
impl Move for BadWithinJoiner
impl RefUnwindSafe for BadWithinJoiner
impl Send for BadWithinJoinerwhere
RawVecInner: Send,
impl Sync for BadWithinJoinerwhere
RawVecInner: Sync,
impl Unpin for BadWithinJoiner
impl UnsafeUnpin for BadWithinJoiner
impl UnwindSafe for BadWithinJoinerwhere
RawVecInner: UnwindSafe,
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