pub struct ValueSafeLabels {
pub by_node: BTreeMap<NodeAddr, BTreeMap<String, String>>,
}Expand description
The value names table, flm.labels.safe.value (VALUE_SAFE_LABELS):
for each reference node of a synthesized value, from the key of a target
it mentions (label_key) to the value name that target is written
under, for the targets that have no safe label in the document’s table
(SafeLabels). Empty for every document tree; see the module
documentation, The references of a synthesized value.
It is held in the catch-up store of one synthesized value and read only at the addresses of that value’s nodes, so its node addresses never reach the run’s own store.
Fields§
§by_node: BTreeMap<NodeAddr, BTreeMap<String, String>>Reference node → the target’s key → the value name written for it, in
the domain REF_DOMAIN.
Implementations§
Trait Implementations§
Source§impl Clone for ValueSafeLabels
impl Clone for ValueSafeLabels
Source§impl Debug for ValueSafeLabels
impl Debug for ValueSafeLabels
Source§impl Default for ValueSafeLabels
impl Default for ValueSafeLabels
Source§impl Table for ValueSafeLabels
impl Table for ValueSafeLabels
Source§fn project(&self, cx: &dyn ProjectCx) -> SerialValue
fn project(&self, cx: &dyn ProjectCx) -> SerialValue
Projects the table as {<node>: {<key>: <value name>}}.
Source§fn piece_class(&self) -> PieceClass
fn piece_class(&self) -> PieceClass
Keyed by node address: the names under which one synthesized value’s references are written are not a fact about the document.
Source§fn absorb(&mut self, piece: ValueSafeLabels)
fn absorb(&mut self, piece: ValueSafeLabels)
Auto Trait Implementations§
impl Forget for ValueSafeLabels
impl Freeze for ValueSafeLabels
impl Move for ValueSafeLabels
impl RefUnwindSafe for ValueSafeLabels
impl Send for ValueSafeLabels
impl Sync for ValueSafeLabels
impl Unpin for ValueSafeLabels
impl UnsafeUnpin for ValueSafeLabels
impl UnwindSafe for ValueSafeLabels
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