pub struct XnoteElement {
pub kind: Arc<XnoteKind>,
}Expand description
The per-value data of the XNOTE element: the xnote kind that a command
writes.
The value also implements the element’s five aspects: its block role
(BlockRoleAspect: inline content for a listed xnote kind; inline or a
block of its own for an in-place one), its reference points
(Referenceable, through ref_points), the content of its xnote
(XnoteSource: the argument XNOTE_ARG), the content it sets apart
from the text around it (ApartFromText), and what replaces it in
content shown again (InCopy: a node of the element MARK_OF).
Fields§
§kind: Arc<XnoteKind>The xnote kind.
Trait Implementations§
Source§impl ApartFromText for XnoteElement
Nothing of an xnote is part of the text around it: its content, the
argument XNOTE_ARG, is shown apart from the words it is attached to (at
the foot of the page, in a list, beside them), and its labels, the
argument LABELS_ARG, identify it. A heading whose title holds an xnote
therefore builds its anchor from the title’s own words. The content
regions are the ones the element’s XnoteSource implementation returns
(regions_apart_from_text).
impl ApartFromText for XnoteElement
Nothing of an xnote is part of the text around it: its content, the
argument XNOTE_ARG, is shown apart from the words it is attached to (at
the foot of the page, in a list, beside them), and its labels, the
argument LABELS_ARG, identify it. A heading whose title holds an xnote
therefore builds its anchor from the title’s own words. The content
regions are the ones the element’s XnoteSource implementation returns
(regions_apart_from_text).
Source§fn apart_from_text(&self, node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
fn apart_from_text(&self, node: &NodeRef<'_, Flm>) -> Vec<ContentRef>
node.Source§impl BlockRoleAspect for XnoteElement
A listed xnote is inline content that attaches to the word before it (a
space before it is removed); an in-place xnote is inline content where its
content is inline, and a block where the block-structure pass laid its
content out as blocks.
impl BlockRoleAspect for XnoteElement
A listed xnote is inline content that attaches to the word before it (a space before it is removed); an in-place xnote is inline content where its content is inline, and a block where the block-structure pass laid its content out as blocks.
Source§impl Clone for XnoteElement
impl Clone for XnoteElement
Source§impl Debug for XnoteElement
impl Debug for XnoteElement
impl Eq for XnoteElement
Source§impl InCopy for XnoteElement
In content copied to be shown again, an xnote becomes one node of the
element MARK_OF that identifies it (MarkOf), written as its mark;
in a copy of content that a synthesized value holds as its own
(ValueContent::Own), it is copied as written (copied_as).
impl InCopy for XnoteElement
In content copied to be shown again, an xnote becomes one node of the
element MARK_OF that identifies it (MarkOf), written as its mark;
in a copy of content that a synthesized value holds as its own
(ValueContent::Own), it is copied as written (copied_as).
Source§impl PartialEq for XnoteElement
impl PartialEq for XnoteElement
Source§impl Referenceable for XnoteElement
The two points of ref_points, labeled by the \label commands of the
optional argument (labels_of; anything else the argument holds is
ignored here and reported by the xnote’s lowering rule), and showing the
content argument where it is inline.
impl Referenceable for XnoteElement
The two points of ref_points, labeled by the \label commands of the
optional argument (labels_of; anything else the argument holds is
ignored here and reported by the xnote’s lowering rule), and showing the
content argument where it is inline.
Auto Trait Implementations§
impl Forget for XnoteElement
impl Freeze for XnoteElement
impl Move for XnoteElement
impl RefUnwindSafe for XnoteElement
impl Send for XnoteElement
impl Sync for XnoteElement
impl Unpin for XnoteElement
impl UnsafeUnpin for XnoteElement
impl UnwindSafe for XnoteElement
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