pub struct RefTargets {
pub by_label: BTreeMap<Label, RefTarget>,
}Expand description
The targets table, flm.refs.targets (REF_TARGETS): from a label to
what it resolves to inside the document. It combines the label table and
the anchors, and the anchors stage
(ANCHORS_STAGE), which runs once for the
document, writes it. A label whose point received no anchor (a point that
lost an anchor collision, or that has nothing to form an anchor from) has
no entry, so a reference to it resolves to nothing in the document.
The combination is a table of its own so that the resolve stage
(RESOLVE) can read
it over a synthesized value. The resolve stage runs once per tree, so
value catch-up runs it
again over a synthesized value, and the per-tree tables it then reads are
those of that value. The table of reference points, flm.refpoints, is
one of them: inside a synthesized value it holds the value’s own points,
usually none. This table is written by a stage that runs once for the
document, which value catch-up never runs again, so the resolve stage
reads the document’s targets even over a synthesized value. Any other
table that holds facts about the whole document and that a per-tree stage
must read over a synthesized value needs the same arrangement.
Fields§
§by_label: BTreeMap<Label, RefTarget>From a label to its target.
Trait Implementations§
Source§impl Clone for RefTargets
impl Clone for RefTargets
Source§impl Debug for RefTargets
impl Debug for RefTargets
Source§impl Default for RefTargets
impl Default for RefTargets
Source§impl SingletonTable for RefTargets
impl SingletonTable for RefTargets
Source§impl Table for RefTargets
impl Table for RefTargets
Source§fn absorb(&mut self, piece: RefTargets)
fn absorb(&mut self, piece: RefTargets)
Source§fn project(&self, cx: &dyn ProjectCx) -> SerialValue
fn project(&self, cx: &dyn ProjectCx) -> SerialValue
crate::dump) and tests. Read moreSource§fn piece_class(&self) -> PieceClass
fn piece_class(&self) -> PieceClass
Auto Trait Implementations§
impl !RefUnwindSafe for RefTargets
impl !UnwindSafe for RefTargets
impl Forget for RefTargets
impl Freeze for RefTargets
impl Move for RefTargets
impl Send for RefTargets
impl Sync for RefTargets
impl Unpin for RefTargets
impl UnsafeUnpin for RefTargets
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