pub struct ParentUninitialized {
pub counter: String,
pub parents: Vec<String>,
}Expand description
The error that is reported when the number of a reference point depends on
a counter that has no value yet (id flm.numbering.parent-uninitialized).
The number of a reference point depends on the values of the counters that
its counter is numbered within, as in 2.1 for the first subsection of the
second section. A counter has no value until it is first advanced, unless
the numbering options give it an initial value
(CounterOptions::initial). This error is
reported in three cases:
- A counter that the counter of the reference point is numbered within has no value yet, as for a subsection before the first section.
- The counter of the reference point has several possible parent counters
(
Parents), and none of them has a value yet. - The reference point counts in a nested scoped instance
(
NumberSource::instances), and the enclosing instance of the same counter has no value yet, as for an item of an inner list that comes before the first item of the outer list. In this case, the fieldparentscontains the counter of the reference point.
Reported by the numbering stage NUMBER once per run and per counter, at
the first reference point concerned. The reference point receives no
number, and its counter is not advanced.
A document whose subsections start before its first section avoids this
error by giving the section counter an initial value, as in
NumberingOptions::new().initial("flm.headings.section", 0). Its first
subsection is then numbered 0.1.
Fields§
§counter: StringThe counter of the reference point.
parents: Vec<String>The counter that has no value, or the possible parent counters, none of which has a value.
Implementations§
Trait Implementations§
Source§impl Clone for ParentUninitialized
impl Clone for ParentUninitialized
Source§impl Debug for ParentUninitialized
impl Debug for ParentUninitialized
Source§impl DiagnosticInfo for ParentUninitialized
impl DiagnosticInfo for ParentUninitialized
Source§const IDENTIFIER: &'static str = "flm.numbering.parent-uninitialized"
const IDENTIFIER: &'static str = "flm.numbering.parent-uninitialized"
<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 ParentUninitialized
impl Display for ParentUninitialized
impl Eq for ParentUninitialized
Source§impl PartialEq for ParentUninitialized
impl PartialEq for ParentUninitialized
impl StructuralPartialEq for ParentUninitialized
Auto Trait Implementations§
impl Forget for ParentUninitialized
impl Freeze for ParentUninitialized
impl Move for ParentUninitialized
impl RefUnwindSafe for ParentUninitialized
impl Send for ParentUninitializedwhere
RawVecInner: Send,
impl Sync for ParentUninitializedwhere
RawVecInner: Sync,
impl Unpin for ParentUninitialized
impl UnsafeUnpin for ParentUninitializedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ParentUninitializedwhere
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