pub struct StandIn {
pub spec: Arc<FlmSynthesizedSpec>,
pub payload: Option<Arc<dyn PresPayload>>,
}Expand description
A new node that a copy stages in place of a node of the document
(CopiedAs::StandIn): a node of a synthesized
element (an element that no
document writes), carrying data of its own and holding no children.
The copy stages it with the span and the parsing state of the node it
replaces, as it does for every copied node, so that a diagnostic about it
points where the document wrote that node. The feature whose aspect returns
the stand-in owns its element and its payload: the feature declares the
element, with a lowering rule on every backend, and puts in the payload
what that rule needs to know about the node it replaces. For example, the
stand-in of an xnote (a note set apart from the running text, such as a
footnote; see xnotes) identifies the
xnote, and its lowering rules write the xnote’s mark.
Fields§
§spec: Arc<FlmSynthesizedSpec>The specification of the new node, which carries its synthesized element.
payload: Option<Arc<dyn PresPayload>>The node’s own data, attached to its node extension
(FlmNodeExt::payload), or None
for a node without data.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StandIn
impl !UnwindSafe for StandIn
impl Forget for StandIn
impl Freeze for StandInwhere
*const ArcInner<FlmSynthesizedSpec> is !null: Freeze,
PhantomData<ArcInner<FlmSynthesizedSpec>>: Freeze,
*const ArcInner<dyn PresPayload> is !null: Freeze,
PhantomData<ArcInner<dyn PresPayload>>: Freeze,
impl Move for StandIn
impl Send for StandIn
impl Sync for StandIn
impl Unpin for StandIn
impl UnsafeUnpin for StandInwhere
*const ArcInner<FlmSynthesizedSpec> is !null: UnsafeUnpin,
PhantomData<ArcInner<FlmSynthesizedSpec>>: UnsafeUnpin,
*const ArcInner<dyn PresPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PresPayload>>: 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