pub struct Unpaired {
pub element: String,
pub kind: String,
pub points: usize,
pub contents: usize,
}Expand description
Error raised when the two aspects of an element that describe its xnotes
return different numbers of xnotes of one kind (id flm.xnotes.unpaired).
Each xnote that an element carries is described in two aspects of the
element. The Referenceable aspect
returns two reference points for each xnote, created with
ref_points. The XnoteSource
aspect returns the region of the node that contains the content of each
xnote. For each xnote kind, both aspects must return the same number of
xnotes.
A document cannot cause this error: it indicates an error in the
definition of the element. Reported by the collect stage
COLLECT once for each such node and xnote kind. The
xnotes of the node are paired with the content regions in order. An xnote
without a content region has empty content. A content region without an
xnote is not written, and the lowering rule of the element reports
flm.run.missing-entry for it.
Fields§
§element: StringThe name of the element of the node.
kind: StringThe name of the xnote kind.
points: usizeThe number of xnotes of this kind among the reference points of the node.
contents: usizeThe number of content regions of xnotes of this kind that the
XnoteSource aspect of the element returns for
the node.
Implementations§
Trait Implementations§
Source§impl DiagnosticInfo for Unpaired
impl DiagnosticInfo for Unpaired
Source§const IDENTIFIER: &'static str = "flm.xnotes.unpaired"
const IDENTIFIER: &'static str = "flm.xnotes.unpaired"
<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
impl Eq for Unpaired
impl StructuralPartialEq for Unpaired
Auto Trait Implementations§
impl Forget for Unpaired
impl Freeze for Unpaired
impl Move for Unpaired
impl RefUnwindSafe for Unpaired
impl Send for Unpairedwhere
RawVecInner: Send,
impl Sync for Unpairedwhere
RawVecInner: Sync,
impl Unpin for Unpaired
impl UnsafeUnpin for Unpaired
impl UnwindSafe for Unpairedwhere
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