pub struct PointDisplay {
pub number: Option<NumberSource>,
pub content: Option<Arc<NodeTree<Flm>>>,
}Expand description
The two things a reference to a point may show, as the anchors stage
(ANCHORS_STAGE) records them: the number source
and the content that the
RefPoint states, with the content
copied out of the document.
A reference shows the first of them that exists: the point’s number, formatted where the reference is written, where the numbering feature numbered the point; else the content; else the label the reference was written with, as written. Whether the point was numbered is not recorded here, because the numbering stage decides it for each run (a point that states a number source is numbered wherever it can be); this holds the number source, the counter and the counter style, and never a formatted number.
The content is stored as a synthesized
value, a small tree
held in the table, which the \ref rule brings up to date and splices into
the lowered tree.
Fields§
§number: Option<NumberSource>The point’s number source (the counter and the counter style it is numbered by), where it can be numbered at all.
content: Option<Arc<NodeTree<Flm>>>The content the point shows where it has no number, as a synthesized value.
Trait Implementations§
Source§impl Clone for PointDisplay
impl Clone for PointDisplay
Source§impl Debug for PointDisplay
impl Debug for PointDisplay
Auto Trait Implementations§
impl !RefUnwindSafe for PointDisplay
impl !UnwindSafe for PointDisplay
impl Forget for PointDisplay
impl Freeze for PointDisplay
impl Move for PointDisplay
impl Send for PointDisplay
impl Sync for PointDisplay
impl Unpin for PointDisplay
impl UnsafeUnpin for PointDisplaywhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<NodeId>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<NodeTree<Flm>> is !null: UnsafeUnpin,
PhantomData<ArcInner<NodeTree<Flm>>>: UnsafeUnpin,
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> 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