pub struct ContentPointer {
pub target: NodeAddr,
pub region: NodeRegion,
}Expand description
The payload of a content pointer: the node some content belongs to, and the node region of that node that holds the content, which the pointer shows where it is placed. A feature’s own synthesized element carries it (see the module documentation).
The node is identified by its address, which is valid only within the
run that built the pointer: the address of a node of a document tree, or
of a node of a synthesized value the lowering holds (see
Lowerer::lower_region). A pointer stored in a table must refer to a
node of a document tree: a synthesized value’s identifier is valid only
inside the stage call that brought the value up to date, and the runner
adds a table to the run’s store after that call has ended.
Its projection is {target: "<tree>/<node index>", region: "argument <i>"} (or "slot <i>"). No payload reader is registered for it, so a
tree holding a pointer can be printed but not read back.
Fields§
§target: NodeAddrThe address of the node the content belongs to.
region: NodeRegionThe node region of that node that holds the content.
Implementations§
Trait Implementations§
Source§impl Clone for ContentPointer
impl Clone for ContentPointer
Source§impl Debug for ContentPointer
impl Debug for ContentPointer
impl Eq for ContentPointer
Source§impl PartialEq for ContentPointer
impl PartialEq for ContentPointer
Source§impl PresPayload for ContentPointer
impl PresPayload for ContentPointer
Source§fn project(&self) -> SerialValue
fn project(&self) -> SerialValue
impl StructuralPartialEq for ContentPointer
Auto Trait Implementations§
impl Forget for ContentPointer
impl Freeze for ContentPointer
impl Move for ContentPointer
impl RefUnwindSafe for ContentPointer
impl Send for ContentPointer
impl Sync for ContentPointer
impl Unpin for ContentPointer
impl UnsafeUnpin for ContentPointer
impl UnwindSafe for ContentPointer
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