pub struct NotAnAncestor {
pub counter: String,
pub named: String,
}Expand description
The error that is reported when, under the numbering options, the number of
a counter includes the number of a counter that is not always one of its
ancestors (id flm.numbering.not-an-ancestor).
The ancestors of a counter are the counters that it is numbered within,
directly or through other counters. A within-joiner writes the numbers of
the ancestors before the number of the counter (Within),
and the nesting joiner does the same for a nested scoped instance
(CounterDecl::nesting). If a counter has
several possible parents, its ancestors depend on the parent that applies
at a reference point. A within-joiner or a nesting joiner must write only
counters that are ancestors for every possible parent. For instance, a
within template that writes the parent that applies, as in #{_parent}.,
meets this requirement.
Reported by the numbering stage NUMBER when it applies the numbering
options, before it reads any reference point. The registry build fails for
a declaration that does not meet the requirement, so only the numbering
options can cause this error. The error is reported in two cases:
- The
withinvalue of an entry gives the counter such a within-joiner. Thewithinvalue is then ignored, and the counter is numbered as its declaration specifies. - The numbering options change the ancestors of a counter, so that the declared within-joiner or the nesting joiner of the counter writes a counter that is not always an ancestor. No reference point of this counter receives a number during the run.
Fields§
§counter: StringThe counter whose within-joiner or nesting joiner writes the counter
named.
named: StringThe counter that is written, and that is not always an ancestor of the
counter counter.
Implementations§
Source§impl NotAnAncestor
impl NotAnAncestor
Trait Implementations§
Source§impl Clone for NotAnAncestor
impl Clone for NotAnAncestor
Source§impl Debug for NotAnAncestor
impl Debug for NotAnAncestor
Source§impl DiagnosticInfo for NotAnAncestor
impl DiagnosticInfo for NotAnAncestor
Source§const IDENTIFIER: &'static str = "flm.numbering.not-an-ancestor"
const IDENTIFIER: &'static str = "flm.numbering.not-an-ancestor"
<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 NotAnAncestor
impl Display for NotAnAncestor
impl Eq for NotAnAncestor
Source§impl PartialEq for NotAnAncestor
impl PartialEq for NotAnAncestor
impl StructuralPartialEq for NotAnAncestor
Auto Trait Implementations§
impl Forget for NotAnAncestor
impl Freeze for NotAnAncestor
impl Move for NotAnAncestor
impl RefUnwindSafe for NotAnAncestor
impl Send for NotAnAncestor
impl Sync for NotAnAncestor
impl Unpin for NotAnAncestor
impl UnsafeUnpin for NotAnAncestor
impl UnwindSafe for NotAnAncestor
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