pub struct XnoteRecord {
pub point: PointId,
pub mark: PointId,
pub span: FlmSpan,
pub content: Option<NodeRegion>,
}Expand description
The record of one xnote of the document in the table of xnotes
(Xnotes). The record identifies the two reference points of the xnote
and the region of its node that contains the content of the xnote.
The record contains no number and no anchor. The number of an xnote of a
numbered kind is stored under point in the counter table of the
numbering feature (COUNTERS). The anchors of the xnote and of its mark
are stored under point and mark in the anchors table of the
references feature
(ANCHORS).
Fields§
§point: PointIdThe reference point of the xnote itself. Its reference kind is the
name of the xnote kind, and it carries the labels of the xnote: a
\ref to one of these labels refers to this point. For a numbered
xnote kind, this point is numbered.
mark: PointIdThe reference point of the mark of the xnote, which follows point
on the same node. Its reference kind is <kind>-mark. Its anchor
identifies the mark in the output, and on the HTML page the entry of
the xnote in the list links back to it.
span: FlmSpanThe source span of the node carrying the two points.
content: Option<NodeRegion>The region of the node that contains the content of the xnote, as the
XnoteSource aspect of the node’s element
returns it. The regions that this aspect returns are paired in order
with the xnotes of the node, xnote kind by xnote kind (see
XnoteSource). None if the aspect returns
fewer regions of this kind than the node has xnotes of this kind; the
collect stage then reports Unpaired.
Trait Implementations§
Source§impl Clone for XnoteRecord
impl Clone for XnoteRecord
Source§impl Debug for XnoteRecord
impl Debug for XnoteRecord
impl Eq for XnoteRecord
Source§impl PartialEq for XnoteRecord
impl PartialEq for XnoteRecord
impl StructuralPartialEq for XnoteRecord
Auto Trait Implementations§
impl Forget for XnoteRecord
impl Freeze for XnoteRecord
impl Move for XnoteRecord
impl RefUnwindSafe for XnoteRecord
impl Send for XnoteRecord
impl Sync for XnoteRecord
impl Unpin for XnoteRecord
impl UnsafeUnpin for XnoteRecordwhere
*const ArcInner<Source<FlmOrigin>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Source<FlmOrigin>>>: UnsafeUnpin,
impl UnwindSafe for XnoteRecord
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<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